tailscale/util
M. J. Fromberger a75360ccd6
util: add truncate package (#7490)
This package handles cases where we need to truncate human-readable text to fit
a length constraint without leaving "ragged" multi-byte rune fragments at the
end of the truncated value.

Change-Id: Id972135d1880485f41b1fedfb65c2b8cc012d416
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2023-03-07 11:51:36 -08:00
..
cibuild all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clientmetric all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cloudenv all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmpver all: update copyright and license headers 2023-01-27 15:36:29 -08:00
codegen all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
cstruct all: update copyright and license headers 2023-01-27 15:36:29 -08:00
deephash all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
dirwalk all: use tstest.Replace more 2023-03-04 12:24:55 -08:00
dnsname all: update copyright and license headers 2023-01-27 15:36:29 -08:00
goroutines all: update copyright and license headers 2023-01-27 15:36:29 -08:00
groupmember all: update copyright and license headers 2023-01-27 15:36:29 -08:00
hashx all: update copyright and license headers 2023-01-27 15:36:29 -08:00
httpm all: update copyright and license headers 2023-01-27 15:36:29 -08:00
jsonutil all: update copyright and license headers 2023-01-27 15:36:29 -08:00
lineread all: update copyright and license headers 2023-01-27 15:36:29 -08:00
linuxfw util/linuxfw: add build constraints excluding GOARCH=arm 2023-02-14 06:00:03 +00:00
mak all: update copyright and license headers 2023-01-27 15:36:29 -08:00
multierr util/multierr: implement Go 1.20+'s multiple error Unwrap 2023-02-02 14:03:51 -05:00
must all: update copyright and license headers 2023-01-27 15:36:29 -08:00
osshare all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pidowner all: update copyright and license headers 2023-01-27 15:36:29 -08:00
precompress all: update copyright and license headers 2023-01-27 15:36:29 -08:00
quarantine all: update copyright and license headers 2023-01-27 15:36:29 -08:00
racebuild all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ringbuffer util/ringbuffer: move generic ringbuffer from corp repo 2023-02-21 19:11:08 +00:00
set all: update copyright and license headers 2023-01-27 15:36:29 -08:00
singleflight all: update copyright and license headers 2023-01-27 15:36:29 -08:00
slicesx util/slicesx: add package for generic slice functions, use 2023-03-03 16:25:48 -05:00
systemd all: update copyright and license headers 2023-01-27 15:36:29 -08:00
truncate util: add truncate package (#7490) 2023-03-07 11:51:36 -08:00
uniq all: update copyright and license headers 2023-01-27 15:36:29 -08:00
vizerror util/vizerror: add As function to get wrapped Error 2023-02-01 14:39:13 -08:00
winutil all: update copyright and license headers 2023-01-27 15:36:29 -08:00