19 lines
296 B
Go
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(`'([^\\\\']|\\')*'`)
|
|
)
|