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 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
Constants ¶
View Source
const (
NL = "\n"
)
Variables ¶
This section is empty.
Functions ¶
func CreateTemplate ¶
func FileExists ¶
func FileNameWithoutExt ¶
func FindGoModPath ¶
func FindProjectPath ¶
func GetGoctlHome ¶
func GetTemplateDir ¶
func JoinPackages ¶
func LoadTemplate ¶
func MkdirIfNotExist ¶
func PathFromGoSrc ¶
func RemoveIfExist ¶
func RemoveOrQuit ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.