Documentation ¶
Index ¶
- func IDStrings() []string
- type ID
- func (i ID) IsAID() bool
- func (i ID) MarshalJSON() ([]byte, error)
- func (i ID) MarshalText() ([]byte, error)
- func (i ID) MarshalYAML() (interface{}, error)
- func (i ID) String() string
- func (i *ID) UnmarshalJSON(data []byte) error
- func (i *ID) UnmarshalText(text []byte) error
- func (i *ID) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶
type ID int
const ( // 1 // 2 TPC ID = 3 TRD ID = 4 TOF ID = 5 HMP ID = 6 PHS ID = 7 CPV ID = 8 // 9 MCH ID = 10 // 11-14 ZDC ID = 15 // 16 TRG ID = 17 EMC ID = 18 TST ID = 19 // 20-31 ITS ID = 32 FDD ID = 33 FT0 ID = 34 FV0 ID = 35 MFT ID = 36 MID ID = 37 DCS ID = 38 FOC ID = 39 FIT ID = 254 // non-standard mapping: FT0 + FV0 = FIT NIL ID = 255 )
func IDString ¶
IDString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (ID) IsAID ¶
IsAID returns "true" if the value is listed in the enum definition. "false" otherwise
func (ID) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for ID
func (ID) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for ID
func (ID) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for ID
func (*ID) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for ID
func (*ID) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for ID
func (*ID) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for ID
Click to show internal directories.
Click to hide internal directories.