annotation-go/annotation.go

21 lines
327 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-09-04 01:15:34 +00:00
MethodAnnotationPrefix = "_"
2018-08-22 09:36:13 +00:00
)
var (
AnnotationRGX = regexp.MustCompile(`@((?s).*?)\(((?s).*?)\)`)
AnnotationBodyRGX = regexp.MustCompile(`'([^\\\\']|\\')*'`)
)