util

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 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 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

func IsNewVersion() bool

func IsProjectNotInitialized

func IsProjectNotInitialized() bool

func ProjectExist

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

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