Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more strings functions support #171

Closed
prostickman opened this issue Mar 25, 2018 · 4 comments
Closed

add more strings functions support #171

prostickman opened this issue Mar 25, 2018 · 4 comments
Assignees

Comments

@prostickman
Copy link

suggest add more func into the template.FuncMap where from "package strings"
likes "contains" "hasPrefix" and so on

sriv added a commit that referenced this issue Apr 11, 2018
@ghost ghost assigned sriv Apr 11, 2018
@ghost ghost added the in progress label Apr 11, 2018
@sriv
Copy link
Member

sriv commented Apr 13, 2018

should be available in nightly >= 13/4/2018

@nehashri
Copy link
Contributor

nehashri commented Apr 13, 2018

The newly added string functions are :

"stringContains":      strings.Contains,
"stringHasPrefix":     strings.HasPrefix,
"stringHasSuffix":     strings.HasSuffix,
"stringJoin":          strings.Join,
"stringSplit":         strings.Split,
"stringCompare":       strings.Compare,
"stringReplace":       strings.Replace,
"stringTrim":          strings.Trim,
"stringToLower":       strings.ToLower,
"stringToUpper":       strings.ToUpper,
"stringToTitle":       strings.ToTitle,

@sriv
Copy link
Member

sriv commented Apr 13, 2018

also added sum that takes a slice of int and returns the sum.

@sswaroopgupta
Copy link

This feature has to be documented.

The docs for customization of html-report also needs to be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants