generator

package
v0.0.0-...-d13f8e8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Box = packr.NewBox("./templates")
)

Functions

func Camelize

func Camelize(in string) string

func CamelizeVar

func CamelizeVar(in string) string

func GenerateFile

func GenerateFile(template string, data interface{}, filePath string) error

func GenerateFromContent

func GenerateFromContent(content string, data interface{}, filePath string) error

func GetAttributeJson

func GetAttributeJson(in string) string

func GetAttributeName

func GetAttributeName(in string) string

func GetAttributeType

func GetAttributeType(in string) string

func LoadFile

func LoadFile(fileName string) string

func Mkdir

func Mkdir(path string)

func Pluralize

func Pluralize(in string) string

func Render

func Render(fileName string, data interface{}) string

func RenderFromContent

func RenderFromContent(content string, data interface{}) string

func Snakeze

func Snakeze(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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