Skip to content

Commit

Permalink
remove unused utils
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo committed Aug 23, 2018
1 parent f393126 commit 018f84d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@ func randomName() string {
return fmt.Sprintf("%s-%s%s", randomdata.Adjective(), randomdata.Noun(), randomdata.Adjective())
}

//Index find the index of an element int the array
func Index(vs []string, t string) int {
for i, v := range vs {
if v == t {
return i
}
}
return -1
}

//Include indicate if a string is in the strinc array
func Include(vs []string, t string) bool {
return Index(vs, t) >= 0
}

//FatalOnError is an helper function to transform error to fatl
func FatalOnError(err error) {
if err != nil {
Expand Down

0 comments on commit 018f84d

Please sign in to comment.