reg/vendor/github.com/gogo/protobuf/test/issue330/type.go

18 lines
236 B
Go
Raw Normal View History

package issue330
type TypeIdentifier uint32
const (
UnknownType TypeIdentifier = 0
UserType TypeIdentifier = 20
)
func (t TypeIdentifier) String() string {
switch t {
case 20:
return "User"
default:
return "Unknown"
}
}