Versions in this module Expand all Collapse all v1 v1.0.1 Jun 16, 2021 v1.0.0 Jun 11, 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 + type DefaultTemplate struct + func With(name string) *DefaultTemplate + func (t *DefaultTemplate) Execute(data interface{}) (*bytes.Buffer, error) + func (t *DefaultTemplate) GoFmt(format bool) *DefaultTemplate + func (t *DefaultTemplate) Parse(text string) *DefaultTemplate + func (t *DefaultTemplate) SaveTo(data interface{}, path string, forceUpdate bool) error