Skip to content

Commit

Permalink
Update go version in go mod, and apply gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
logocomune authored Nov 1, 2023
1 parent 82b0087 commit 72e9f14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

//Locator returns the Maidenhead locator for the given latitude and longitude and requested precision.
// Locator returns the Maidenhead locator for the given latitude and longitude and requested precision.
func Locator(lat, lng float64, precision int) (string, error) {
if math.Abs(lat) >= 90 {
return "", errors.New("invalid latitude allowed values are between -90 and 90")
Expand Down
4 changes: 2 additions & 2 deletions decompress.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type SquareCoordinate struct {
BottomRight Coordinate
}

//GridCenter returns the center of the square grid
// GridCenter returns the center of the square grid
func GridCenter(locator string) (float64, float64, error) {
locatorLength := len(locator)
if locatorLength%2 != 0 {
Expand Down Expand Up @@ -91,7 +91,7 @@ func subLocatorDecode(subLocatorLng, subLocatorLat string, step int) (float64, f
return lat, lng, nil
}

//Square returns the coordinates of the vertices of the square grid
// Square returns the coordinates of the vertices of the square grid
func Square(locator string) (SquareCoordinate, error) {
centerLat, centerLng, err := GridCenter(locator)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/logocomune/maidenhead

go 1.17
go 1.21.3

0 comments on commit 72e9f14

Please sign in to comment.