tpltool

package
v0.0.0-...-9d889f8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TempFileSuffix    = ".xtpl"
	TempFileSuffixLen = 5
)

Variables

This section is empty.

Functions

func Camel2snake

func Camel2snake(s string) string

func CopyFile

func CopyFile(srcPath, destPath string) error

func CopyTemplate

func CopyTemplate(srcPath, destPath string, value interface{}) error

func FormatTemplateName

func FormatTemplateName(filePath string) string

func IsTemplateFile

func IsTemplateFile(filePath string) bool

func LowerFirst

func LowerFirst(src string) string

func SafeMkdir

func SafeMkdir(target string) error

func Snake2camel

func Snake2camel(s string) string

camel string, xx_yy to XxYy

func UpperFirst

func UpperFirst(src string) string

func Walk

func Walk(root string, walkFn WalkFunc) error

func WalkFile

func WalkFile(src, target string, handler func(src, target string) error) error

Types

type WalkFunc

type WalkFunc func(path *string, info os.FileInfo, err error) error

Jump to

Keyboard shortcuts

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