annotation-go/annotation.go
crusader b37874d849 ing
2018-07-17 19:58:14 +09:00

18 lines
267 B
Go

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