From 05bface2f370a5f37141a7fbbae846b14c605e04 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Sun, 15 Sep 2024 17:29:10 +0800 Subject: [PATCH] go fmt --- pmtiles/directory.go | 2 +- pmtiles/show_test.go | 2 +- pmtiles/write.go | 2 +- pmtiles/write_test.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pmtiles/directory.go b/pmtiles/directory.go index a66a438..26cf286 100644 --- a/pmtiles/directory.go +++ b/pmtiles/directory.go @@ -152,7 +152,7 @@ func headerToJson(header HeaderV3) HeaderJson { } func headerToStringifiedJson(header HeaderV3) string { - s, _ := json.MarshalIndent(headerToJson(header),"", " ") + s, _ := json.MarshalIndent(headerToJson(header), "", " ") return string(s) } diff --git a/pmtiles/show_test.go b/pmtiles/show_test.go index 7f0c023..3ea59c0 100644 --- a/pmtiles/show_test.go +++ b/pmtiles/show_test.go @@ -3,10 +3,10 @@ package pmtiles import ( "bytes" "encoding/json" + "github.com/stretchr/testify/assert" "log" "os" "testing" - "github.com/stretchr/testify/assert" ) func TestShowHeader(t *testing.T) { diff --git a/pmtiles/write.go b/pmtiles/write.go index b4d861a..a4e0f1e 100644 --- a/pmtiles/write.go +++ b/pmtiles/write.go @@ -22,7 +22,7 @@ func Write(logger *log.Logger, inputArchive string, newHeaderJsonFile string, ne // write the new the metadata // copy the leaf directories // copy the tile data - file, err := os.OpenFile(inputArchive, os.O_RDWR, 0666) + file, err := os.OpenFile(inputArchive, os.O_RDWR, 0666) buf := make([]byte, 127) _, err = file.Read(buf) diff --git a/pmtiles/write_test.go b/pmtiles/write_test.go index 30bfb61..380cba0 100644 --- a/pmtiles/write_test.go +++ b/pmtiles/write_test.go @@ -1,12 +1,12 @@ package pmtiles import ( - "os" + "github.com/stretchr/testify/assert" "io" "io/ioutil" + "os" "path/filepath" "testing" - "github.com/stretchr/testify/assert" ) func TestWriteHeader(t *testing.T) {