Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BackupSuffix = "~" Mode = os.FileMode(uint32(0755)) Noderef = true Preserveroot = false Prompt = false Silent = false Target = "" )
View Source
var License = `` /* 197-byte string literal not displayed */
View Source
var PromptFunc = func(filename string, ignored bool) bool { prompt := "Overwrite " + filename + "?" var response string trueresponse := "yes" falseresponse := "no" for { fmt.Print(prompt) fmt.Scanln(&response) response = strings.ToLower(response) if strings.Contains(trueresponse, response) { return true } if strings.Contains(falseresponse, response) || response == "" { return false } } }
Functions ¶
func PrintUsage ¶
func PrintUsage()
func SetBackupSuffix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.