diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
commit | f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch) | |
tree | 22d628df079bb5cac93cc2338cfbe585ff8a2763 /nodeboxtype_string.go | |
parent | 425da65ed46061303604610bb539d6495b2b1f3f (diff) |
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'nodeboxtype_string.go')
-rw-r--r-- | nodeboxtype_string.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nodeboxtype_string.go b/nodeboxtype_string.go new file mode 100644 index 0000000..4f2c337 --- /dev/null +++ b/nodeboxtype_string.go @@ -0,0 +1,28 @@ +// Code generated by "stringer -linecomment -type NodeBoxType"; DO NOT EDIT. + +package mt + +import "strconv" + +func _() { + // An "invalid array index" compiler error signifies that the constant values have changed. + // Re-run the stringer command to generate them again. + var x [1]struct{} + _ = x[CubeBox-0] + _ = x[FixedBox-1] + _ = x[MountedBox-2] + _ = x[LeveledBox-3] + _ = x[ConnectedBox-4] + _ = x[maxBox-5] +} + +const _NodeBoxType_name = "CubeFixedMountedLeveledConnectedmaxBox" + +var _NodeBoxType_index = [...]uint8{0, 4, 9, 16, 23, 32, 38} + +func (i NodeBoxType) String() string { + if i >= NodeBoxType(len(_NodeBoxType_index)-1) { + return "NodeBoxType(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _NodeBoxType_name[_NodeBoxType_index[i]:_NodeBoxType_index[i+1]] +} |