generationUtil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineTargetPath

func DetermineTargetPath(inputDir string, packageName string) (string, error)

func Generate

func Generate(twd Info) error

func GetPackageNameForEnumsOrStructs

func GetPackageNameForEnumsOrStructs(enums []model.Enum, structs []model.Struct) (string, error)

func GetPackageNameForStructs

func GetPackageNameForStructs(structs []model.Struct) (string, error)

func Prefixed

func Prefixed(filenamePath string) string

Types

type Info

type Info struct {
	Src            string
	TargetFilename string
	TemplateName   string
	TemplateString string
	FuncMap        template.FuncMap
	Data           interface{}
}

Jump to

Keyboard shortcuts

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