Skip to content

Commit

Permalink
contains func
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Feb 10, 2020
1 parent b100104 commit bda5eec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ func createDir(path string) error {
return nil
}

func contains(slice []string, contains string) bool {
for _, item := range slice {
if contains == item {
return true
}
}
return false
}

func main() {

apiTmpl := TmplData{
Expand Down

0 comments on commit bda5eec

Please sign in to comment.