Configuration

Night mode

Common Standard Lib Packages

A$AP Learn Go (GoLang) 🚀 Course

Engineers From These Top Companies and Universities Trust EXLskills

1M+ Professionals | 100+ Institutions

This is the EXLskills free and open-source A$AP Learn GoLang Course! It's a highly-accelerated open course that's best-suited for people with a bit of background in software engineering to quickly pick up Go, learn the essential best practices, and hit the ground running!
After this course, you'll be able to build basic Go applications in addition to lightweight webservers, highly-concurrent programs, and reusable libraries in Go that you can share with other developers!
For further practice, we recommend checking out our Go Guided Projects that will give you access to a professional Go developer, detailed documentation, and real-world tasks that you can work on to go from the basics of Go, into building production apps.

Is this course FREE?

Yes, this a 100% free course that you can contribute to on GitHub here!

Have more questions?

Building Applications

Common Standard Lib Packages

Common Stdlib Packages

Go offers an incredible amount of functionality to developers directly via the stdlib -- which is really awesome! Doing everything from handling JSON, XML, HTML templates, and even entire webservers can be done with relative ease, exclusively with the standard lib.

Some Popular Packages to Note

Note, the entire standard lib ships with your Go installation, hence, the name 'standard lib', which means that you can just import these in your code and start using them!

fmt: this is likely the first Go library you ever saw, it is pronounced 'fumt', and contains utilities for I/O, such as printing to the console and formatting strings -- similar to the C-style printf and scanf

encoding/json: the only JSON library you'll probably ever need in Go, this library offers a full-suite of JSON-related utilities that cover the entire gammut of JSON tasks

net/http: the base package that offers your http.Server type and http.ListenAndServe function that form the basis of almost all Go HTTP servers (even if you choose to use a 3rd party router or middleware, etc.)

errors: this package offers the errors.New(string) function that you will need whenever you wish to create your own error to return to a caller of a function