generationUtil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 7 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