generators

package
v0.0.0-...-aa761ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 DocLines

func DocLines(obj interface{}) []string

func GenerateFile

func GenerateFile(filePath string, tmpl *template.Template, data interface{}) error

func HeaderComment

func HeaderComment() string

func NewGeneratedPathForInterface

func NewGeneratedPathForInterface(intf model.Interface, suffix string) 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 TemplateFuncs() template.FuncMap

func TemplateHelpers

func TemplateHelpers() template.FuncMap

func ThisDir

func ThisDir() (string, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL