reg/vendor/github.com/gogo/protobuf/test/issue330/type.go
Jess Frazelle 3834c605e5
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:32:47 -05:00

18 lines
236 B
Go

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"
}
}