Skip to content

Commit

Permalink
make enum (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: jyu6 <[email protected]>
  • Loading branch information
jy4096 and jyu6 authored Mar 22, 2022
1 parent c5aa226 commit 87f5cd8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Magefile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage

package main

Expand Down
10 changes: 5 additions & 5 deletions builder/types/string_comparators.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
3 changes: 2 additions & 1 deletion examples/fromjson/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage

package main

Expand Down
3 changes: 2 additions & 1 deletion examples/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage

package main

Expand Down

0 comments on commit 87f5cd8

Please sign in to comment.