Skip to content

Glossary: Go Beyond the Basics

log

Also written: log.Println, log.Fatal

The standard package that prints lines with the date and time in front. `log.Fatal` prints and then exits.

Where the book teaches it

Related terms

slog.New / NewTextHandler / NewJSONHandler