You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util
Brad Fitzpatrick 1a963342c7 util/set: add Of variant of SetOf that takes variadic parameter
set.Of(1, 2, 3) is prettier than set.SetOf([]int{1, 2, 3}).

I was going to change the signature of SetOf but then I noticed its
name has stutter anyway, so I kept it for compatibility. People can
prefer to use set.Of for new code or slowly migrate.

Also add a lazy Make method, which I often find myself wanting,
without having to resort to uglier mak.Set(&set, k, struct{}{}).

Updates #cleanup

Change-Id: Ic6f3870115334efcbd65e79c437de2ad3edb7625
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 months ago
..
cache util/cache: fix missing interface methods (#11275) 9 months ago
cibuild
clientmetric
cloudenv util/cloudenv: add support for DigitalOcean 9 months ago
cmpver util/cmpver: add Less/LessEq helper funcs 8 months ago
codegen all: use Go 1.22 range-over-int 7 months ago
cstruct all: use Go 1.22 range-over-int 7 months ago
ctxkey all: use reflect.TypeFor now available in Go 1.22 (#11078) 9 months ago
deephash all: use Go 1.22 range-over-int 7 months ago
dirwalk
dnsname all: use Go 1.22 range-over-int 7 months ago
execqueue
expvarx all: use Go 1.22 range-over-int 7 months ago
fastuuid all: use Go 1.22 range-over-int 7 months ago
goroutines
groupmember
hashx all: use Go 1.22 range-over-int 7 months ago
httphdr
httpm
jsonutil all: use Go 1.22 range-over-int 7 months ago
limiter all: use Go 1.22 range-over-int 7 months ago
lineread
linuxfw util/linuxfw,go.{mod,sum}: don't log errors when deleting non-existant chains and rules (#11852) 7 months ago
lru all: use Go 1.22 range-over-int 7 months ago
mak
multierr all: use Go 1.22 range-over-int 7 months ago
must
nocasemaps all: use Go 1.22 range-over-int 7 months ago
osdiag ipn/local: log OS-specific diagnostic information as JSON (#11700) 7 months ago
osshare
osuser util/osuser: add unit test for parseGroupIds 7 months ago
pidowner all: use Go 1.22 range-over-int 7 months ago
precompress
progresstracking ipn/localapi: add support for multipart POST to file-put 8 months ago
quarantine
race all: use Go 1.22 range-over-int 7 months ago
racebuild
rands util/rands: add Shuffle and Perm functions with on-stack RNG state 9 months ago
reload util/reload: add new package to handle periodic value loading 8 months ago
ringbuffer all: use Go 1.22 range-over-int 7 months ago
set util/set: add Of variant of SetOf that takes variadic parameter 6 months ago
singleflight all: use Go 1.22 range-over-int 7 months ago
slicesx util/slicesx: add AppendMatching 7 months ago
syspolicy util/syspolicy: add ReadStringArray interface (#11857) 7 months ago
sysresources
systemd
testenv
topk all: use Go 1.22 range-over-int 7 months ago
truncate util/truncate: support []byte as well (#11614) 7 months ago
uniq all: use Go 1.22 range-over-int 7 months ago
vizerror
winutil util/syspolicy: add ReadStringArray interface (#11857) 7 months ago
zstdframe all: use Go 1.22 range-over-int 7 months ago