Categorygithub.com/gojuno/generator
modulepackage
0.0.0-20190329131035-2e3c43d0ee59
Repository: https://github.com/gojuno/generator.git
Documentation: pkg.go.dev

# README

generator GoDoc Build Status

generator

# Functions

First returns first element of given slice or interface.
Last returns last element of given slice or interface.
MixedCaps transform underscored string to mixed-caps string.
New creates new Generator and returns pointer to it.
NormalizeImportPath takes path and return import path relative to deepestnested vendor dir.
PackageAbsPath parses GOPATH environment variable and returns a firstabsolute path matched the package p import path.
No description provided by the author

# Structs

Generator stores information about imports, loaded packages,registered template functions and global template variables.
Param is a proxy struct that represents parameter name and it's type.

# Type aliases

ParamSet is a helper structure that represents list of input or result parametersof a function.