diff options
author | Nathan Zadoks <nathan@nathan7.eu> | 2016-07-02 02:20:02 -0400 |
---|---|---|
committer | Nathan Zadoks <nathan@nathan7.eu> | 2016-07-02 02:22:36 -0400 |
commit | 23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e (patch) | |
tree | f617f6cf2cf79937716e4cebc4d8ef2e455ed829 /pkgs/build-support/docker/tarsum.go | |
parent | 5356154366b9a7cbc2cc61c7a22ada604752ba38 (diff) | |
download | nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar.gz nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar.bz2 nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar.lz nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar.xz nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.tar.zst nixpkgs-23e9e33975bf560ec3fd6e5b2e01d7cd9ce1c14e.zip |
dockerTools: format tarsum.go with gofmt
Nearly all Go code on this earth is formatted with gofmt, and it's somewhat surprising to find a Go file that isn't formatted accordingly.
Diffstat (limited to 'pkgs/build-support/docker/tarsum.go')
-rw-r--r-- | pkgs/build-support/docker/tarsum.go | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pkgs/build-support/docker/tarsum.go b/pkgs/build-support/docker/tarsum.go index 4c25f11b71e..81a3341fff0 100644 --- a/pkgs/build-support/docker/tarsum.go +++ b/pkgs/build-support/docker/tarsum.go @@ -1,24 +1,24 @@ package main import ( - "tarsum" - "io" - "io/ioutil" - "fmt" - "os" + "fmt" + "io" + "io/ioutil" + "os" + "tarsum" ) func main() { - ts, err := tarsum.NewTarSum(os.Stdin, false, tarsum.Version1) - if err != nil { - fmt.Println(err) - os.Exit(1) - } + ts, err := tarsum.NewTarSum(os.Stdin, false, tarsum.Version1) + if err != nil { + fmt.Println(err) + os.Exit(1) + } - if _, err = io.Copy(ioutil.Discard, ts); err != nil { - fmt.Println(err) - os.Exit(1) - } + if _, err = io.Copy(ioutil.Discard, ts); err != nil { + fmt.Println(err) + os.Exit(1) + } - fmt.Println(ts.Sum(nil)) -} \ No newline at end of file + fmt.Println(ts.Sum(nil)) +} |