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 fc28c8e7f3 cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces
This adds support for generic types and interfaces to our cloner and viewer codegens.
It updates these packages to determine whether to make shallow or deep copies based
on the type parameter constraints. Additionally, if a template parameter or an interface
type has View() and Clone() methods, we'll use them for getters and the cloner of the
owning structure.

Updates #12736

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2 months ago
..
cache util/cache: fix missing interface methods (#11275) 7 months ago
cibuild all: update copyright and license headers 2 years ago
clientmetric util/clientmetric: allow client metric values to be provided by a function 1 year ago
cloudenv all: use math/rand/v2 more 4 months ago
cmpver util/cmpver: add Less/LessEq helper funcs 7 months ago
codegen cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces 2 months ago
cstruct all: use Go 1.22 range-over-int 5 months ago
ctxkey all: use reflect.TypeFor now available in Go 1.22 (#11078) 8 months ago
deephash util/deephash: fix test regression on 32-bit 3 months ago
dirwalk all: use tstest.Replace more 2 years ago
dnsname all: use Go 1.22 range-over-int 5 months ago
execqueue control/controlclient,util/execqueue: extract execqueue into a package 8 months ago
expvarx all: use Go 1.22 range-over-int 5 months ago
fastuuid all: use Go 1.22 range-over-int 5 months ago
goroutines util/goroutines: let ScrubbedGoroutineDump get only current stack 1 year ago
groupmember util/groupmember: fail earlier if group doesn't exist, use slices.Contains 11 months ago
hashx all: use Go 1.22 range-over-int 5 months ago
httphdr util/httphdr: add new package for parsing HTTP headers (#9797) 11 months ago
httpm util/httpm: don't run test if .git doesn't exist 10 months ago
jsonutil all: use Go 1.22 range-over-int 5 months ago
limiter all: add test for package comments, fix, add comments as needed 2 months ago
lineread all: update copyright and license headers 2 years ago
linuxfw all: add test for package comments, fix, add comments as needed 2 months ago
lru util/lru: add Clear method 4 months ago
mak various: add golangci-lint, fix issues (#7905) 1 year ago
multierr all: use Go 1.22 range-over-int 5 months ago
must all: update copyright and license headers 2 years ago
nocasemaps all: use Go 1.22 range-over-int 5 months ago
osdiag all: add test for package comments, fix, add comments as needed 2 months ago
osshare all: add test for package comments, fix, add comments as needed 2 months ago
osuser util/osuser: add unit test for parseGroupIds 5 months ago
pidowner all: use Go 1.22 range-over-int 5 months ago
pool util/pool: add package for storing and using a pool of items 4 months ago
precompress all: update copyright and license headers 2 years ago
progresstracking ipn/localapi: add support for multipart POST to file-put 6 months ago
quarantine all: update copyright and license headers 2 years ago
race all: use Go 1.22 range-over-int 5 months ago
racebuild all: update copyright and license headers 2 years ago
rands wgengine/magicsock: use math/rands/v2 4 months ago
reload all: use math/rand/v2 more 4 months ago
ringbuffer all: use Go 1.22 range-over-int 5 months ago
set util/set: add Of variant of SetOf that takes variadic parameter 5 months ago
singleflight util/singleflight: add DoChanContext 3 months ago
slicesx all: use math/rand/v2 more 4 months ago
syspolicy xcode/iOS: support serial number collection via MDM on iOS (#11429) 3 months ago
sysresources util/sysresources, magicsock: scale DERP buffer based on system memory 1 year ago
systemd all: update copyright and license headers 2 years ago
testenv util/testenv: add new package to hold InTest 1 year ago
topk all: use Go 1.22 range-over-int 5 months ago
truncate util/truncate: support []byte as well (#11614) 6 months ago
uniq all: use Go 1.22 range-over-int 5 months ago
vizerror util/vizerror: add As function to get wrapped Error 2 years ago
winutil all: add test for package comments, fix, add comments as needed 2 months ago
zstdframe all: use Go 1.22 range-over-int 5 months ago