summaryrefslogtreecommitdiff
path: root/internal/regex/flag.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-12-08 14:32:29 +0000
committerPaul Buetow <pbuetow@mimecast.com>2020-12-08 14:32:29 +0000
commit602fb36da6c734a2d64bf4be13719c7349d5fe73 (patch)
tree71dd7f67e9fc1ae3b5a55433425120b57a53e73c /internal/regex/flag.go
parentc74bfb883c35b15883e4cb1356e8a52282b96971 (diff)
make lint and vet happy
Diffstat (limited to 'internal/regex/flag.go')
-rw-r--r--internal/regex/flag.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/regex/flag.go b/internal/regex/flag.go
index d3ff712..396bda0 100644
--- a/internal/regex/flag.go
+++ b/internal/regex/flag.go
@@ -2,6 +2,7 @@ package regex
import "fmt"
+// Flag for regex.
type Flag int
const (
@@ -15,6 +16,7 @@ const (
Noop Flag = iota
)
+// NewFlag returns a new regex flag.
func NewFlag(str string) (Flag, error) {
switch str {
case "default":