format

package
v0.0.0-...-d5b3e22 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelizeDown

func CamelizeDown(word string) string

CamelizeDown converts a name or other string into a camel case version with the first letter lowercase. "ModelID" becomes "modelID".

func CamelizeUp

func CamelizeUp(word string) string

CamelizeUp converts a name or other string into a camel case version with the first letter uppercase. "modelID" becomes "ModelID".

func LoadTemplateFile

func LoadTemplateFile(path string, options ...Option) (*template.Template, error)

Types

type File

type File struct {
	Reader   io.Reader
	Filename string
}

func SliceToFiles

func SliceToFiles(content []byte) ([]File, error)

type Option

type Option func(l *loader)

func WithTemplateFunc

func WithTemplateFunc(name string, function interface{}) Option

Jump to

Keyboard shortcuts

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