package
0.0.0-20221111052918-3caaee035fbf
Repository: https://github.com/szhhq/tailscale.git
Documentation: pkg.go.dev
# Functions
NonNil takes a pointer to a Go data structure (currently only a slice or a map) and makes sure it's non-nil for JSON serialization.
NonNilMapForJSON makes sure that *slicePtr is non-nil so it will won't be omitted from JSON serialization and possibly confuse JavaScript clients expecting it to be present.
NonNilSliceForJSON makes sure that *slicePtr is non-nil so it will won't be omitted from JSON serialization and possibly confuse JavaScript clients expecting it to be present.
Set populates an entry in a map, making the map if necessary.