xref: /aosp_15_r20/external/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/EnumInNestedNS.go (revision 890232f25432b36107d06881e0a25aaa6b473652)
1// Code generated by the FlatBuffers compiler. DO NOT EDIT.
2
3package NamespaceB
4
5import "strconv"
6
7type EnumInNestedNS int8
8
9const (
10	EnumInNestedNSA EnumInNestedNS = 0
11	EnumInNestedNSB EnumInNestedNS = 1
12	EnumInNestedNSC EnumInNestedNS = 2
13)
14
15var EnumNamesEnumInNestedNS = map[EnumInNestedNS]string{
16	EnumInNestedNSA: "A",
17	EnumInNestedNSB: "B",
18	EnumInNestedNSC: "C",
19}
20
21var EnumValuesEnumInNestedNS = map[string]EnumInNestedNS{
22	"A": EnumInNestedNSA,
23	"B": EnumInNestedNSB,
24	"C": EnumInNestedNSC,
25}
26
27func (v EnumInNestedNS) String() string {
28	if s, ok := EnumNamesEnumInNestedNS[v]; ok {
29		return s
30	}
31	return "EnumInNestedNS(" + strconv.FormatInt(int64(v), 10) + ")"
32}
33