How does struct{} take zero bytes in Go (opens in new tab)
How Go's empty struct{} takes zero bytes - every one shares the same zerobase address, plus the gotchas to know.
Read the original articleHow Go's empty struct{} takes zero bytes - every one shares the same zerobase address, plus the gotchas to know.
Read the original article