From 87f5cd82d76d5c3049fbc2ba3d346cede3581a8d Mon Sep 17 00:00:00 2001 From: Chrome <19543684+chromevoid@users.noreply.github.com> Date: Tue, 22 Mar 2022 09:18:14 -0700 Subject: [PATCH] make enum (#65) Co-authored-by: jyu6 --- Magefile.go | 3 ++- builder/types/string_comparators.go | 10 +++++----- examples/fromjson/main.go | 3 ++- examples/main.go | 3 ++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Magefile.go b/Magefile.go index a1b2e94..5550374 100644 --- a/Magefile.go +++ b/Magefile.go @@ -1,4 +1,5 @@ -//+build mage +//go:build mage +// +build mage package main diff --git a/builder/types/string_comparators.go b/builder/types/string_comparators.go index 9defea0..926b8ce 100644 --- a/builder/types/string_comparators.go +++ b/builder/types/string_comparators.go @@ -3,9 +3,9 @@ package types type StringComparator string const ( - Lexicographic = "lexicographic" - Alphanumeric = "alphanumeric" - Numeric = "numeric" - Strlen = "strlen" - Version = "version" + Lexicographic StringComparator = "lexicographic" + Alphanumeric = "alphanumeric" + Numeric = "numeric" + Strlen = "strlen" + Version = "version" ) diff --git a/examples/fromjson/main.go b/examples/fromjson/main.go index 2f9b700..df715b3 100644 --- a/examples/fromjson/main.go +++ b/examples/fromjson/main.go @@ -1,4 +1,5 @@ -//+build mage +//go:build mage +// +build mage package main diff --git a/examples/main.go b/examples/main.go index b723b65..aa76ac7 100644 --- a/examples/main.go +++ b/examples/main.go @@ -1,4 +1,5 @@ -//+build mage +//go:build mage +// +build mage package main