tailscale/util/truncate
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
..
truncate_test.go util: add truncate package (#7490) 2023-03-07 11:51:36 -08:00
truncate.go util: add truncate package (#7490) 2023-03-07 11:51:36 -08:00