annotation-go/annotation.go

19 lines
296 B
Go
Raw Normal View History

2018-08-22 09:36:13 +00:00
package annotation
import (
"regexp"
)
const (
AnnotationTag = "annotation"
2018-08-23 06:30:38 +00:00
NameTag = "@name"
DefaultTag = "@default"
RequiredTag = "@required"
2018-08-22 09:36:13 +00:00
)
var (
AnnotationRGX = regexp.MustCompile(`@((?s).*?)\(((?s).*?)\)`)
AnnotationBodyRGX = regexp.MustCompile(`'([^\\\\']|\\')*'`)
)