Go for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists Configuration, logs, state and reports live in files, and Go's standard library treats a file as one instance of a general idea: something you can read from (io.Reader) or write to (io.Writer). Once you…
Go for DevOps: Files, bufio, io.Reader and Writer Composition, Atomic Writes, filepath, JSON and CSV
Read and write files the safe way in Go: whole-file helpers and permissions, bufio.Scanner and its 64 KiB line limit, the Flush you must not forget, io.Copy, LimitReader, TeeReader and MultiWriter, atomic writes, WalkDir and Glob, and JSON and CSV with their strictness options.
Sign in free to read this script, along with the rest of the library.
Sign in free