Use golang:1.18 for the build/test images. Fix all linter errors. Update go.mod to 1.16 to support os.ReadFile, os.WriteFile. Update libraries.