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
Nick Khyl d500a92926 util/slicesx: add HasPrefix, HasSuffix, CutPrefix, and CutSuffix functions
The standard library includes these for strings and byte slices,
but it lacks similar functions for generic slices of comparable types.
Although they are not as commonly used, these functions are useful
in scenarios such as working with field index sequences (i.e., []int)
via reflection.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
4 months ago
..
cache
cibuild
clientmetric
cloudenv
cmpver
codegen cmd/viewer, types/views, util/codegen: add viewer support for custom container types 4 months ago
cstruct
ctxkey
deephash util/deephash: fix test regression on 32-bit 5 months ago
dirwalk
dnsname
execqueue
expvarx
fastuuid
goroutines
groupmember util/groupmember: fail earlier if group doesn't exist, use slices.Contains 1 year ago
hashx
httphdr
httpm
jsonutil
limiter all: add test for package comments, fix, add comments as needed 4 months ago
lineread
linuxfw all: add test for package comments, fix, add comments as needed 4 months ago
lru
mak various: add golangci-lint, fix issues (#7905) 2 years ago
multierr
must all: update copyright and license headers 2 years ago
nocasemaps
osdiag all: add test for package comments, fix, add comments as needed 4 months ago
osshare all: add test for package comments, fix, add comments as needed 4 months ago
osuser
pidowner
pool
precompress
progresstracking
quarantine
race all: use Go 1.22 range-over-int 7 months ago
racebuild all: update copyright and license headers 2 years ago
rands wgengine/magicsock: use math/rands/v2 5 months ago
reload
ringbuffer
set
singleflight util/singleflight: add DoChanContext 5 months ago
slicesx util/slicesx: add HasPrefix, HasSuffix, CutPrefix, and CutSuffix functions 4 months ago
syspolicy xcode/iOS: support serial number collection via MDM on iOS (#11429) 5 months ago
sysresources util/sysresources, magicsock: scale DERP buffer based on system memory 2 years ago
systemd
testenv
topk all: use Go 1.22 range-over-int 7 months ago
truncate
uniq
vizerror
winutil all: add test for package comments, fix, add comments as needed 4 months ago
zstdframe all: use Go 1.22 range-over-int 7 months ago