jschaf / pggen

Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
MIT License
281 stars 26 forks source link

refactor: remove deprecated ioutil #72

Closed 0xjac closed 2 years ago

0xjac commented 2 years ago

Since go 1.16, ioutil has been deprecated. Its use triggers warnings when linting with golangci-lint.

Migrate from ioutil to io and os, as specified at: https://go.dev/doc/go1.16#ioutil

0xjac commented 2 years ago

@jschaf Based on my comment in !71, I've decided to just submit a second PR with the change.

Unfortunately it's a lot of small diffs to go through, so I thought a dedicated PR might be cleaner and easier to review. Of course the code compiles and make all passes.