Re:REST Servers in Go: Part 1 – standard library
by zemo on Sunday January 17, 2021 @05:43PM
(#25815995)
usually I have some other package that defines all of the types that can appear on the wire (which I often call `wire` because `proto` is taken by protobuf), define some exported interface in that package with an unexported method so that no other packages can define new types for that interface, and then have a method on my db structs that returns the wire types, like this:
[ Parent
| on HN ]
There are no comments on this comment yet.