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