go mod init example.com/demo
go get github.com/matbragan/geocoord
package main
import (
"fmt"
"github.com/matbragan/geocoord"
)
func main() {
postalCode := "87109"
coordinates, err := geocoord.GetCoordinates(postalCode)
if err != nil {
fmt.Printf("Error: %v/n", err)
return
}
fmt.Printf("Latitude: %f, Longitude: %f\n", coordinates.Latitude, coordinates.Longitude)
}