DEPRECATED: Use https://github.com/altipla-consulting/libs instead.
Customized types and functions for our geo needs.
NOTE: If you want a full-fledged geo library we recommend using https://github.com/twpayne/go-geom instead.
go get github.com/altipla-consulting/geoThis library has no external dependencies outside the Go standard library.
You can use the types of this package in your models structs when working with database/sql:
type MyModel struct {
ID int64 `db:"id,pk"`
Location geo.Point `db:"location"`
}You can make pull requests or create issues in GitHub. Any code you send should be formatted using gofmt.
Start the test database:
docker-compose up -d databaseInstall test libs:
go get github.com/stretchr/testifyRun the tests:
go testShutdown the database when finished testing:
docker-compose stop database