summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2024-12-11 10:55:21 -0800
committerGitHub <noreply@github.com>2024-12-11 10:55:21 -0800
commit00458600605e8db25655f9abb95cac5bb78b3c55 (patch)
treea15f2e1b1f9a48337992cb47416f782eaa6c536b /control/controlhttp/controlhttpserver/controlhttpserver.go
parent6e552f66a0289f6309477fb024019b62a251da16 (diff)
downloadtailscale-00458600605e8db25655f9abb95cac5bb78b3c55.tar.xz
tailscale-00458600605e8db25655f9abb95cac5bb78b3c55.zip
types/iox: add function types for Reader and Writer (#14366)
Throughout our codebase we have types that only exist only to implement an io.Reader or io.Writer, when it would have been simpler, cleaner, and more readable to use an inlined function literal that closes over the relevant types. This is arguably more readable since it keeps the semantic logic in place rather than have it be isolated elsewhere. Note that a function literal that closes over some variables is semantic equivalent to declaring a struct with fields and having the Read or Write method mutate those fields. Updates #cleanup Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions