util

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 DoCmd

func DoCmd(cmd string, args ...string)

func GetCopyright

func GetCopyright(file string) string

GetCopyright will return the contents of the copyright file if it exists. if the file cannot be read, will return the empty string.

func GetDomain

func GetDomain() 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 Write

func Write(path, templateName, templateValue string, data interface{}) bool

func WriteIfNotFound

func WriteIfNotFound(path, templateName, templateValue string, data interface{}) bool

writeIfNotFound returns true if the file was created and false if it already exists

func WriteString

func WriteString(path, value string)

func Yesno added in v1.0.0

func Yesno(reader *bufio.Reader) bool

Yesno reads from stdin looking for one of "y", "yes", "n", "no" and returns true for "y" and false for "n"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL