Esempio n. 1
0
func (x TheTestEnum) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(TheTestEnum_name, int32(x))
}
Esempio n. 2
0
func (x Error_Type) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(Error_Type_name, int32(x))
}
Esempio n. 3
0
File: task.pb.go Progetto: Gerg/bbs
func (x Task_State) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(Task_State_name, int32(x))
}
Esempio n. 4
0
func (x BindMountMode) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(BindMountMode_name, int32(x))
}
Esempio n. 5
0
func (x MyCustomUnprefixedEnum) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(MyCustomUnprefixedEnum_name, int32(x))
}
Esempio n. 6
0
func (x MyEnumWithEnumStringer) MarshalJSON() ([]byte, error) {
	return proto.MarshalJSONEnum(MyEnumWithEnumStringer_name, int32(x))
}