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
Joe Tsai c47578b528
util/multierr: add Range (#6643)
Errors in Go are no longer viewed as a linear chain, but a tree.
See golang/go#53435.

Add a Range function that iterates through an error
in a pre-order, depth-first order.
This matches the iteration order of errors.As in Go 1.20.

This adds the logic (but currently commented out) for having
Error implement the multi-error version of Unwrap in Go 1.20.
It is commented out currently since it causes "go vet"
to complain about having the "wrong" signature.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 year ago
..
cibuild all: use cibuild.On 2 years ago
clientmetric all: fix spelling mistakes 2 years ago
cloudenv all: use syncs.AtomicValue 2 years ago
cmpver util/cmpver: move into OSS from corp repo. 3 years ago
codegen all: convert more code to use net/netip directly 2 years ago
cstruct all: remove old +build tags 2 years ago
deephash types/ptr: move all the ptrTo funcs to one new package's ptr.To 2 years ago
dirwalk util/dirwalk, metrics, portlist: add new package for fast directory walking 2 years ago
dnsname all: fix spelling mistakes 2 years ago
endian util/endian: add support on Loongnix-Server (loong64) 2 years ago
goroutines ipn/ipnlocal: add c2n /debug/{goroutines,prefs,metrics} 2 years ago
groupmember util/groupmember: remove redundant code (#4298) 2 years ago
hashx util/hashx: move from sha256x (#5388) 2 years ago
jsonutil all: use any instead of interface{} 2 years ago
lineread util/lineread: add docs to Reader 4 years ago
mak all: fix spelling mistakes 2 years ago
multierr util/multierr: add Range (#6643) 1 year ago
must util/must: rename Do->Get, add Do 2 years ago
osshare all: remove old +build tags 2 years ago
pidowner all: remove old +build tags 2 years ago
precompress cmd/tsconnect: pre-compress main.wasm when building the NPM package 2 years ago
quarantine cmd/tailscale, util/quarantine: set quarantine flags on files from Taildrop 2 years ago
racebuild all: remove old +build tags 2 years ago
set util/set: add new set package for SetHandle type 2 years ago
singleflight util/singleflight: sync with upstream 2 years ago
strs util/strs: add new package for string utility funcs 2 years ago
systemd all: remove old +build tags 2 years ago
uniq util/uniq: add ModifySliceFunc (#5504) 2 years ago
winutil ipn/ipnauth, util/winutil: add temporary LookupPseudoUser workaround to address os/user.LookupId errors on Windows 2 years ago