pkg

package
v0.0.0-...-25ff90d Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chk

func Chk(err error)

func CleanUpGenFiles

func CleanUpGenFiles(dir string) error

func FileExists

func FileExists(name string) (bool, error)

FileExists reports whether the named file or directory exists.

func MkdirPathIfNotExist

func MkdirPathIfNotExist(dirPath string) error

func SaveFile

func SaveFile(dirPath, fileName string, text []byte) error

Types

type GenTpl

type GenTpl struct {
}

func (*GenTpl) Gen

func (p *GenTpl) Gen(file string, tpls []ITemplate)

type ITemplate

type ITemplate interface {
	GetTemplate() string
	GetPath() string
	GetFileName() string
	ParseData(file string)
	GetData() interface{}
	SetBaseDir(dir string)
	GetBaseDir() string
}

Jump to

Keyboard shortcuts

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