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>
5 months ago
..
cache
cibuild
clientmetric
cloudenv all: use math/rand/v2 more 6 months ago
cmpver
codegen cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces 5 months ago
cstruct
ctxkey
deephash util/deephash: fix test regression on 32-bit 5 months ago
dirwalk
dnsname
execqueue
expvarx
fastuuid
goroutines
groupmember
hashx
httphdr
httpm
jsonutil
limiter all: add test for package comments, fix, add comments as needed 5 months ago
lineread
linuxfw all: add test for package comments, fix, add comments as needed 5 months ago
lru
mak
multierr
must
nocasemaps
osdiag all: add test for package comments, fix, add comments as needed 5 months ago
osshare all: add test for package comments, fix, add comments as needed 5 months ago
osuser
pidowner
pool util/pool: add package for storing and using a pool of items 6 months ago
precompress
progresstracking
quarantine
race
racebuild
rands wgengine/magicsock: use math/rands/v2 6 months ago
reload all: use math/rand/v2 more 6 months ago
ringbuffer
set
singleflight util/singleflight: add DoChanContext 6 months ago
slicesx all: use math/rand/v2 more 6 months ago
syspolicy xcode/iOS: support serial number collection via MDM on iOS (#11429) 6 months ago
sysresources
systemd
testenv
topk
truncate
uniq
vizerror
winutil all: add test for package comments, fix, add comments as needed 5 months ago
zstdframe