Skip to content

Commit

Permalink
localisation: adds Contains func
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Mar 25, 2019
1 parent b233620 commit 64e576d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ stages:
- prepare

Go Lint:
stage: prepare
extends: .Go Service - Go Lint
4 changes: 4 additions & 0 deletions localisation/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,9 @@ var (

return shortened
},

"Contains": func(s, substr string) bool {
return strings.Contains(s, substr)
},
}
)

0 comments on commit 64e576d

Please sign in to comment.