Documentation ¶
Index ¶
- Constants
- func AddTemplateFunc(name string, fn interface{})
- func DocLines(obj interface{}) []string
- func GenerateFile(filePath string, tmpl *template.Template, data interface{}) error
- func HeaderComment() string
- func NewGeneratedPathForInterface(intf model.Interface, suffix string) string
- func ShouldGenerateAuthz(objs ...interface{}) bool
- func ShouldGenerateHttp(objs ...interface{}) bool
- func ShouldGenerateLogging(objs ...interface{}) bool
- func TemplateFuncs() template.FuncMap
- func TemplateHelpers() template.FuncMap
- func ThisDir() (string, error)
- type GeneratedPaths
- type ParsedSourceData
- type ParsedSourceMap
Constants ¶
View Source
const GeneratedPathExtension = "gen.go"
View Source
const GeneratedPathNewExtension = "gen.new.go"
Variables ¶
This section is empty.
Functions ¶
func AddTemplateFunc ¶
func AddTemplateFunc(name string, fn interface{})
func GenerateFile ¶
func HeaderComment ¶
func HeaderComment() string
func ShouldGenerateAuthz ¶
func ShouldGenerateAuthz(objs ...interface{}) bool
func ShouldGenerateHttp ¶
func ShouldGenerateHttp(objs ...interface{}) bool
func ShouldGenerateLogging ¶
func ShouldGenerateLogging(objs ...interface{}) bool
func TemplateFuncs ¶
func TemplateHelpers ¶
Types ¶
type GeneratedPaths ¶
type GeneratedPaths []string
func (GeneratedPaths) FinalizeAll ¶
func (o GeneratedPaths) FinalizeAll() error
func (GeneratedPaths) RemoveAll ¶
func (o GeneratedPaths) RemoveAll() error
type ParsedSourceData ¶
type ParsedSourceData struct { Map ParsedSourceMap Keys []string }
type ParsedSourceMap ¶
type ParsedSourceMap map[string]model.ParsedSources
Mapping of golang package (identified by directory path) to ParsedSources
func (ParsedSourceMap) Keys ¶
func (o ParsedSourceMap) Keys() []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.