Versions in this module Expand all Collapse all v1 v1.1.4 Jan 13, 2021 v1.1.3 Jan 13, 2021 Changes in this version + const NL + 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 FindProjectPath(loc string) (string, bool) + func GetGoctlHome() (string, error) + func GetHead(source string) string + func GetTemplateDir(category string) (string, error) + func Index(slice []string, item string) int + 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