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 /liquidtype_string.go | |
parent | 425da65ed46061303604610bb539d6495b2b1f3f (diff) |
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'liquidtype_string.go')
-rw-r--r-- | liquidtype_string.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/liquidtype_string.go b/liquidtype_string.go new file mode 100644 index 0000000..3fb9eee --- /dev/null +++ b/liquidtype_string.go @@ -0,0 +1,25 @@ +// Code generated by "stringer -type LiquidType"; 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[NotALiquid-0] + _ = x[FlowingLiquid-1] + _ = x[LiquidSrc-2] +} + +const _LiquidType_name = "NotALiquidFlowingLiquidLiquidSrc" + +var _LiquidType_index = [...]uint8{0, 10, 23, 32} + +func (i LiquidType) String() string { + if i >= LiquidType(len(_LiquidType_index)-1) { + return "LiquidType(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _LiquidType_name[_LiquidType_index[i]:_LiquidType_index[i+1]] +} |