diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2024-11-04 20:49:40 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2024-11-05 10:27:52 -0800 |
| commit | 01185e436fd39c2aa499b3c56bcb08d6c4dc7b84 (patch) | |
| tree | bf022ae6816bf09869cf4921e08c3832e42559ff /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 809a6eba80c94e7593b5f7d1604f1f4ac8a6b61c (diff) | |
| download | tailscale-01185e436fd39c2aa499b3c56bcb08d6c4dc7b84.tar.xz tailscale-01185e436fd39c2aa499b3c56bcb08d6c4dc7b84.zip | |
types/result, util/lineiter: add package for a result type, use it
This adds a new generic result type (motivated by golang/go#70084) to
try it out, and uses it in the new lineutil package (replacing the old
lineread package), changing that package to return iterators:
sometimes over []byte (when the input is all in memory), but sometimes
iterators over results of []byte, if errors might happen at runtime.
Updates #12912
Updates golang/go#70084
Change-Id: Iacdc1070e661b5fb163907b1e8b07ac7d51d3f83
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
