Private
Public Access
1
0

style: format Go code with gofumpt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Apply consistent formatting to Go source files using gofumpt
as required by pre-commit guidelines.
This commit is contained in:
2025-08-03 16:06:59 -07:00
parent 3e6a0f9e63
commit 2dfc355f7c
9 changed files with 21 additions and 25 deletions

View File

@@ -16,8 +16,10 @@ import (
"go.ntppool.org/data-api/ntpdb"
)
const pointBasis float64 = 10000
const pointSymbol = "‱"
const (
pointBasis float64 = 10000
pointSymbol = "‱"
)
// const pointBasis = 1000
// const pointSymbol = "‰"
@@ -163,5 +165,4 @@ func (srv *Server) dnsAnswers(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "public,max-age=1800")
return c.JSONPretty(http.StatusOK, r, "")
}

View File

@@ -84,7 +84,6 @@ func (srv *Server) zoneCounts(c echo.Context) error {
} else {
// skip everything and use the special logic that we always include the most recent date
skipCount = float64(count) + 1
}
}
@@ -144,5 +143,4 @@ func (srv *Server) zoneCounts(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "s-maxage=28800, max-age=7200")
return c.JSON(http.StatusOK, rv)
}