Skip to content

Glossary: Go Basics

strings package

Also written: strings.TrimSpace, strings.Split, strings.Join, strings.Fields, strings.Contains, strings.ToUpper

The standard-library package for working on text. Its functions, like `TrimSpace`, `Split`, `Join` and `Fields`, return a new result and never change the original.

Where the book teaches it

Related terms

strconv