style: format Go code with gofumpt
Apply consistent formatting to Go source files using gofumpt as required by pre-commit guidelines.
This commit is contained in:
@@ -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, "")
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user