Documentation
¶
Index ¶
- Variables
- func CamelCase(snake string, first bool) string
- func Comment(node ast.Node) *ast.CommentGroup
- func Document(node ast.Node) *ast.CommentGroup
- func GetPackage(p string) (pkgName, importPath string, err error)
- func JoinCamel(name ...string) string
- func NthString(n int) string
- func ParseCommentGroupTags(cg *ast.CommentGroup) map[string]string
- func ParseCommentTags(node ast.Node) map[string]string
- func ParseDocumentTags(node ast.Node) map[string]string
- func SnakeCase(camel string) string
- type Context
- type Executor
- type File
- type FilterAny
- type FilterFunc
- type FilterList
- type FilterTags
- type Filterer
- type Finalezer
- type Generator
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Some Singletons FilterAll = FilterFunc(func(Context, ast.Node) bool { return false }) FilterNothing = FilterFunc(func(Context, ast.Node) bool { return true }) )
View Source
var (
TagsPrefix = "+bm:"
)
Functions ¶
func GetPackage ¶
func ParseCommentGroupTags ¶
func ParseCommentGroupTags(cg *ast.CommentGroup) map[string]string
Types ¶
type FilterFunc ¶
type FilterList ¶
type FilterList []Filterer
type FilterTags ¶
type FilterTags []string
Click to show internal directories.
Click to hide internal directories.
