wiki.hjertnes.website

Golang Anonymous Struct

I can never remember how to do anon structs in Golang. This is how

var b = struct{A string B int}{A: "A", B: 1}