util

package
v0.0.0-...-e3f3f79 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(filepath string) bool

CheckFileExist 检查文件是否存在

func LintName

func LintName(name string) (should string)

LintName returns a different name if it should be different.

func MkDirIfNotExist

func MkDirIfNotExist(path string) error

MkDirIfNotExist 如果指定文件夹不存在则创建

func MkDirsIfNotExist

func MkDirsIfNotExist(dirs []string)

MkDirsIfNotExist 批量创建文件夹

func RenderFile

func RenderFile(filePath string, tpl *template.Template, metaInfo map[string]interface{})

RenderFile 生成文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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