The standard library
The standard library is the dependency this course does not add. These lessons cover fmt scanning, io readers and writers, bufio, files and path/filepath, flags, time and its reference layout, regular expressions, encoding/json streamed and not, CSV, the two template packages and log/slog.
079
Scanning input with fmt
Scan, Sscan and Fscan, the count and the error, and a line parsed into typed values
Open
080
io.Reader and io.Writer
the two interfaces, io.Copy, io.LimitReader, a reader written by hand and a writer that counts
Open
081
bufio: buffered reading and writing
bufio.Reader, Scanner, Writer and Flush, and the cost of a read per byte
Open
082
Files with os and io/fs
os.ReadFile and WriteFile, os.Open, fs.FS, os.DirFS and WalkDir
Open
083
path/filepath
Join, Dir, Base, Ext, Glob, Walk and the platform separator
Open
084
Command line flags
flag.String and the other types, Parse, flag.Usage, positional arguments and a non-zero exit
Open
085
time: instants, durations and timers
time.Now, Duration arithmetic, time.Sleep, NewTimer and NewTicker
Open
086
Time formatting, parsing and zones
the reference layout, Format and Parse, UTC against Local and a timestamp converted
Open
087
regexp
MustCompile, MatchString, FindStringSubmatch, named groups and ReplaceAllString
Open
088
encoding/json
Marshal and Unmarshal, struct tags, omitempty, a number kept exact and the error of a bad field
Open
089
Streaming JSON with Decoder and Encoder
json.Decoder, Decode in a loop, json.Encoder, DisallowUnknownFields and a stream of objects
Open
090
encoding/csv
csv.Reader, the fields per record, a quoted comma and a Writer that writes back
Open
091
text/template and html/template
a template, the data it reads, an if and a range, and the escaping html/template adds
Open
092
log/slog
slog.Info, key and value pairs, a JSON handler, levels and the request id in every line
Open