Learning the Go Standard Library
3h 18mBeginner2021-03-03
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
In the world of programming languages, Go is a relative newcomer, but has become very popular in the developer community due to its simplicity, performance, and focus on modern programming techniques like concurrency. The key to making the most efficient use of Go is to keep your code lean, and one of the best ways to do that is to use the standard package library. As instructor Joe Marini explains, a big part of the popularity of Go is due to the large and growing ecosystem of packages that make up that standard library. In this course, Joe takes a look at several of the more popular and useful packages that address common development scenarios, like formatting strings for output and display to the user, performing common networking tasks like HTTP requests, processing internet data formats like XML and JSON, and working with files and directories. After this course, you’ll have a solid grasp of what's included in the standard library and how to leverage it within your code.
Skills covered
GoGoogleLearningProgramming LanguagesSoftware Development
Concepts
0. Introduction
- 01 - Don't go re-inventing the wheel
- 02 - What you should know
- 03 - Setting up the environment
- 04 - Overview of Go packages
1. Formatting with Fmt
- 05 - Overview of the fmt package
- 06 - Print and Println basics
- 07 - Using Printf and Sprintf
- 08 - Formatting and precision
- 09 - Reading from standard input
2. Working with Strings
- 10 - The strings package
- 11 - Basic string operations
- 12 - String searching
- 13 - String manipulation
- 14 - Using the Map function
- 15 - Using string builder
- 16 - Parsing strings with strconv
- 17 - String tests with Unicode
3. Mathematical Operations
- 18 - The math package basics
- 19 - Trigonometry and other functions
- 20 - Random number generation
- 21 - Using random numbers
4. Files and Directories
- 22 - File information
- 23 - Writing files
- 24 - Reading files
- 25 - Directory operations
- 26 - Temporary files and directories
5. Networking
- 27 - Working with URLs
- 28 - Performing HTTP GET
- 29 - Performing HTTP POST
- 30 - Encoding JSON
- 31 - Decoding JSON
- 32 - Encoding XML
- 33 - Decoding XML
Conclusion
- 34 - Next steps
Related courses
Related learn paths
- Network Administration: Build Core Skills for Network Management and Security
- Getting Started with Python
- Python Hands-On Practice
- Advance Your Skills as an R Expert
- A Quick Start Guide to Programming in Python
- The Top Skills Engineering Professionals Have Right Now
- Getting Started with C++
- Explore App Development with the MERN Stack