Documentation ¶
Index ¶
- Constants
- func Clean(category string) error
- func CreateIfNotExist(file string) (*os.File, error)
- func CreateTemplate(category, name, content string) error
- func FileExists(file string) bool
- func FileNameWithoutExt(file string) string
- func FindGoModPath(dir string) (string, bool)
- func GetGoctlHome() (string, error)
- func GetHead(source string) string
- func GetTemplateDir(category string) (string, error)
- func InitTemplates(category string, templates map[string]string) error
- func JoinPackages(pkgs ...string) string
- func LoadTemplate(category, file, builtin string) (string, error)
- func MkdirIfNotExist(dir string) error
- func PathFromGoSrc() (string, error)
- func RemoveIfExist(filename string) error
- func RemoveOrQuit(filename string) error
- func Title(s string) string
- func Untitle(s string) string
- func With(name string) *defaultTemplate
Constants ¶
View Source
const (
NL = "\n"
)
Variables ¶
This section is empty.
Functions ¶
func CreateTemplate ¶ added in v1.0.22
func FileExists ¶
func FileNameWithoutExt ¶
func FindGoModPath ¶ added in v1.0.7
func GetGoctlHome ¶ added in v1.0.29
func GetTemplateDir ¶ added in v1.0.22
func InitTemplates ¶ added in v1.0.22
func JoinPackages ¶
func LoadTemplate ¶ added in v1.0.22
func MkdirIfNotExist ¶
func PathFromGoSrc ¶
func RemoveIfExist ¶
func RemoveOrQuit ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.