annotation-go/annotation.go
crusader f7be0e92c5 ing
2018-08-23 15:30:38 +09:00

19 lines
296 B
Go

package annotation
import (
"regexp"
)
const (
AnnotationTag = "annotation"
NameTag = "@name"
DefaultTag = "@default"
RequiredTag = "@required"
)
var (
AnnotationRGX = regexp.MustCompile(`@((?s).*?)\(((?s).*?)\)`)
AnnotationBodyRGX = regexp.MustCompile(`'([^\\\\']|\\')*'`)
)