3 Commits

Author SHA1 Message Date
Dimitri John Ledkov
d55f3123d4 go: go fix with 1.18
Apply `go fix ./...` to the whole code base using go-1.18 to remove
old build tags.
2023-09-25 13:22:14 +02:00
Miguel Pires
13209fc52c many: fix formatting w/ latest go version
Fix formatting when running the latest version (1.17) of gofmt.
2021-12-08 13:59:56 +00:00
John R. Lenton
90399d1b00 jsonutil/puritan: introducing puritan.String & etc
In some cases snapd is given a string it can't be sure is safe to print to
the user's terminal.

With this change, jsonutil will have the tools to deal with that
safely.  store/details.go and store/details_v2.go use it to decode
everything the store sends.
2018-03-06 12:13:09 +01:00