A Tour of the Standard Library
Part of the Go course
There is a moment in learning any language where you stop wondering how to write a loop and start wondering how to read a file, or format a date, or turn your data into something another program can understand. In a lot of languages the answer is to go shopping: find a package, check whether it is maintained, add it to your project, and hope.
Go's answer is usually that it is already there. The standard library is the collection of packages that ship with Go itself, and it is unusually large and unusually good. Reading files, parsing text, timing things, encoding data, serving web requests: all of it comes in the box, written by the same people, following the same conventions, and guaranteed to keep working.
Want to learn Go A Tour of the Standard Library in a real environment?
Click below, get a fresh Linux box with Go ready to go, and work through A Tour of the Standard Library hands-on with an AI tutor that knows your code.
Start this lessonA Tour of the Standard LibraryWhat you'll learn
- Fmt
- Strings
- Strconv
- Time
- Os
- Bufio
- Encoding/json
Read this lesson in your language
All lessons in this course
20 lessons- 1Hello, Go25 min
- 2Variables and Types25 min
- 3Control Flow: if and for30 min
- 4Functions30 min
- 5Slices and Maps35 min
- 6Structs and Pointers35 min
- 7Methods and Interfaces35 min
- 8Error Handling35 min
- 9Modules and Project Structure35 min
- 10Tiny CLI Capstone40 min
- 11A Tour of the Standard Library40 min
- 12Testing and Benchmarks40 min
- 13Goroutines and Channels40 min
- 14Concurrency Patterns45 min
- 15Generics35 min
- 16HTTP Servers45 min
- 17Databases with database/sql45 min
- 18Performance and Profiling40 min
- 19Design Patterns in Go40 min
- 20Deployment and Production45 min
