diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 119bfbd..63108ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,4 +7,5 @@ stages: - prepare Go Lint: + stage: prepare extends: .Go Service - Go Lint diff --git a/localisation/funcs.go b/localisation/funcs.go index 2dcc2c3..096e6f4 100644 --- a/localisation/funcs.go +++ b/localisation/funcs.go @@ -122,5 +122,9 @@ var ( return shortened }, + + "Contains": func(s, substr string) bool { + return strings.Contains(s, substr) + }, } )