go-simple-geo is a library for simple geo calculations.
go get github.com/EpicStep/go-simple-geo/v2
package main
import (
"fmt"
"github.com/EpicStep/go-simple-geo/v2/geo"
)
func main() {
c1 := geo.NewCoordinatesFromDegrees(55.7522, 37.6156)
c2 := geo.NewCoordinatesFromDegrees(59.9386, 30.3141)
fmt.Println(c1.Distance(c2))
}