Merge pull request #132 from shawnps/patch-1

fix typos
pull/133/head
shirou 10 years ago
commit ef151b7ff7

@ -186,7 +186,7 @@ func mustParseFloat64(val string) float64 {
return vv return vv
} }
// StringsHas checks the target string slice containes src or not // StringsHas checks the target string slice contains src or not
func StringsHas(target []string, src string) bool { func StringsHas(target []string, src string) bool {
for _, t := range target { for _, t := range target {
if strings.TrimSpace(t) == src { if strings.TrimSpace(t) == src {
@ -236,7 +236,7 @@ func PathExists(filename string) bool {
return false return false
} }
//GetEnv retreives the environment variable key. If it does not exist it returns the default. //GetEnv retrieves the environment variable key. If it does not exist it returns the default.
func GetEnv(key string, dfault string, combineWith ...string) string { func GetEnv(key string, dfault string, combineWith ...string) string {
value := os.Getenv(key) value := os.Getenv(key)
if value == "" { if value == "" {

Loading…
Cancel
Save