Documentation ¶
Index ¶
- Variables
- func CheckInstall()
- func DoCmd(cmd string, args ...string)
- func GetCopyright(file string) string
- func GetDomain() string
- func IsNewVersion() bool
- func IsProjectNotInitialized() bool
- func ProjectExist() bool
- func Write(path, templateName, templateValue string, data interface{}) bool
- func WriteIfNotFound(path, templateName, templateValue string, data interface{}) bool
- func WriteString(path, value string)
- func Yesno(reader *bufio.Reader) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Domain string
View Source
var GoSrc string
View Source
var Repo string
Functions ¶
func CheckInstall ¶
func CheckInstall()
func GetCopyright ¶
GetCopyright will return the contents of the copyright file if it exists. if the file cannot be read, will return the empty string.
func IsNewVersion ¶ added in v1.0.0
func IsNewVersion() bool
func IsProjectNotInitialized ¶ added in v1.0.0
func IsProjectNotInitialized() bool
func ProjectExist ¶ added in v1.0.0
func ProjectExist() bool
func WriteIfNotFound ¶
writeIfNotFound returns true if the file was created and false if it already exists
func WriteString ¶
func WriteString(path, value string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.