freedom-legacy/utils.go

17 lines
269 B
Go
Raw Permalink Normal View History

2018-12-28 02:27:34 +00:00
package main
import (
"fmt"
"regexp"
)
func waitForInput() {
var dummy string
_, _ = fmt.Scanln(&dummy)
}
func cleanString(s string) (cleans string){
reg, _ := regexp.Compile("[^a-zA-Z0-9 ]+")
cleans = reg.ReplaceAllString(s, "")
return
}