Versions in this module Expand all Collapse all v0 v0.1.0 Apr 12, 2020 Changes in this version + var ErrBadTypeVar = errors.New("Bad type variable") + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func BuiltInTypes() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Generator struct + func BuiltIn(typeName string) (*Generator, error) + func FromBytes(src []byte) *Generator + func FromFile(filename string) *Generator + func (g *Generator) Generate(w io.Writer) error + func (g *Generator) WithPackageName(name string) *Generator + func (g *Generator) WithTypeMapping(typeVars TypeMap) *Generator + type TypeMap map[TypeVar]string + func TypeMapFromStrings(types ...string) TypeMap + type TypeVar string + const T0 + const T1 + const T2 + const T3 + const T4 + const T5