Jay Taylor's notes
back to listing indexGolang template : Use pipe to uppercase string
[web search]
Original source (stackoverflow.com)
Clipped on: 2016-10-28
I want to upper case a string in a golang template using
But this doesn't works because I can't import Here the script : http://play.golang.org/p/7D69Q57WcN |
|||||||||
|
|||||||||
Just use a FuncMap like this (playground) to inject the ToUpper function into your template.
|
|||
Your Answer
community wiki
Not the answer you're looking for? Browse other questions tagged string templates go uppercase or ask your own question.
asked |
2 years ago |
viewed |
2572 times |
active |
Related
Hot Network Questions
- Anti-static wrist strap around your wrist or around your ankle?
- Does dropping a Coursera course look bad in a PhD application to the university offering the course?
- How is being able to break into any linux machine through grub2 secure?
- Does the Many Worlds interpretation of quantum mechanics necessarily imply every world exist?
- Does the Iron Man movie ever establish a convincing motive for the main villain?
about us
tour
help
blog
chat
data
legal
privacy policy
work here
advertising info
mobile
contact us
feedback
Technology | Life / Arts | Culture / Recreation | Science | Other | ||||||
---|---|---|---|---|---|---|---|---|---|---|
site design / logo © 2016 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0
with attribution required
rev 2016.10.26.4146