Better error wrapping print/check by using %w and Error.is(...).
Save 80 bytes in structs by aligning the padding fields.
Using std constants.
fieldalignment -fix .
/home/greyxor/Documents/Projects/sse/client.go:42:13: struct with 128 pointer bytes could be 120
/home/greyxor/Documents/Projects/sse/server.go:17:13: struct with 56 pointer bytes could be 32
/home/greyxor/Documents/Projects/sse/stream.go:14:13: struct with 136 pointer bytes could be 96
/home/greyxor/Documents/Projects/sse/subscriber.go:10:17: struct with 40 pointer bytes could be 32
%w
andError.is(...)
.