1 2 3 4 5 6 7 8 9 10
package objecttype type typeDetails struct { name string isBaseObject bool } func (ty Type) details() typeDetails { return typeTable[ty] }