In-reply-to » @prologic and any other Golang aficionado... interested in opinions on what is considered best practice here, as I'm still quite green here. So if I have a server and client (both written in Go), data is passed as JSON and marshalled/unmarshalled in both cases to structs that are basically identical between the programs, and I want to have these structs 'shared', should I put the structs maybe into a single file as it's own package and just pull them into the server/client that way?

@eldersnake@yarn.andrewjvpowell.com Yes. Use a separate package. Like what we’ve done with Yarn and how it depends on the go-types library dor common types:

⤋ Read More