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

The strings package - Go Tutorial

From the course: Learning the Go Standard Library

Start my 1-month free trial

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…

Contents