Overview of the Standard Library
This lesson emphasizes the importance of packages and provides one-line descriptions of some famous packages from the standard Go library.
We'll cover the following...
Introduction #
The Go-distribution contains over 250 standard built-in packages for common functionality, like fmt
, os
, … , designated as the standard library written in the Go language itself (besides some low-level routines). See the documentation here. The API in all packages (included package os
) is the same for all systems (Windows, Linux, …); the only package that is different for each system is syscall
. In the examples and exercises throughout the course, we use the packages of the standard library.
Common packages
Here we will discuss the general purpose of a number of common packages grouped by function; we will not go into detail about their inner structure.
unsafe
: contains commands to step out of the Go