From the course: Learning the Go Standard Library
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
The strings package - Go Tutorial
From the course: Learning the Go Standard Library
The strings package
- [Instructor] In this chapter, we're going to talk about working with strings in Go using these strings packages. Now working with string content is probably one of the most common tasks that programmers have to deal with, and the Go package library provides some great support for these scenarios. So in this chapter, we're going to examine three different string related packages and learn about how they make working with strings easier. So we're going to start with the strings package itself where a lot of this functionality is contained. Then we're going to look at the strconv package, which provides features for converting strings to and from basic data types. Then we'll examine the unicode package, which is used to provide various types of unicode safe tests for code points. In the strings package, we'll see how to perform a variety of string related processing, such as searching string content, different ways to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
The strings package1m 31s
-
(Locked)
Basic string operations7m 34s
-
(Locked)
String searching7m 13s
-
(Locked)
String manipulation9m 46s
-
(Locked)
Using the Map function6m 52s
-
(Locked)
Using string builder6m 18s
-
(Locked)
Parsing strings with strconv9m 11s
-
(Locked)
String tests with Unicode5m 16s
-
(Locked)
-
-
-
-