Brad Fitzpatrick
c8939ab7c7
util/endian: add Native variable to get the platform's native binary.ByteOrder
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-11-17 13:49:24 -08:00
Brad Fitzpatrick
ff50ddf1ee
util/racebuild: add package to export a race-is-enabled const
2020-11-16 10:11:53 -08:00
Brad Fitzpatrick
000347d4cf
util/endian: add package with const for whether platform is big endian
2020-11-14 19:53:10 -08:00
Josh Bleecher Snyder
9784cae23b
util/uniq: add new package
...
This makes it easy to compact slices that contain duplicate elements
by sorting and then uniqing.
This is an alternative to constructing an intermediate map
and then extracting elements from it. It also provides
more control over equality than using a map key does.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-10-02 11:00:56 -07:00
Brad Fitzpatrick
bc1751a376
util/pidowner: add missing copyright header
2020-09-11 08:57:10 -07:00
Brad Fitzpatrick
b14288f96c
util/pidowner: add two missing copyright headers
2020-09-11 08:25:23 -07:00
Brad Fitzpatrick
23f01174ea
util/pidowner: new package to map from process ID to its user ID
2020-09-11 08:19:21 -07:00
Brad Fitzpatrick
c3c607e78a
util/lineread: add little package to read lines from files/Readers
2020-07-06 10:34:33 -07:00