whatsthecodeforthat.com

What's the code for Class/Struct Definition in go?

type CustomType struct {
	Field1 Type1
	Field2 Type2
}