Basic String Manipulation – Learn Golang #12
In this video we’ll look at basic String Manipulation in Golang.
Using the strings package, we can convert to uppercase, lowercase, titlecase, and also trim leading and trailing whitespace.
We’ll look at:
strings.ToUpper()
strings.ToLower()
strings.Title()
strings.TrimRight()
strings.TrimLeft()
#golang #codemy #JohnElder
Timecodes
0:00 – Introduction
1:00 – Create a String Variable
1:18 – Import Strings Package
1:35 – strings.ToUpper()
2:26 – strings.Title()
3:09 – strings.ToLower()
3:41 – strings.TrimRight()
5:40 – strings.TrimLeft()
6:25 – Conclusion
Comments are closed.