From 3c0ff440385e4d156432ea64d2a78c6a6c452c58 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 10 Aug 2024 13:29:47 +0200 Subject: Make use of iota --- mintages/parser.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mintages/parser.go') diff --git a/mintages/parser.go b/mintages/parser.go index 7b782b3..9f0c66f 100644 --- a/mintages/parser.go +++ b/mintages/parser.go @@ -10,8 +10,9 @@ import ( ) const ( - Unknown = -1 // Unknown mintage - Invalid = -2 // All mintages <= than this are invalid + _ = -iota + Unknown // Unknown mintage + Invalid // All mintages <= than this are invalid ) type SyntaxError struct { -- cgit v1.2.3