File: type.go

package info (click to toggle)
golang-gogoprotobuf 1.0.0%2Bgit20180330.1ef32a8b-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,932 kB
  • sloc: makefile: 462; sh: 23
file content (17 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
	}
}