Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.
/ geo Public archive

Customized types and functions for our geo needs.

License

Notifications You must be signed in to change notification settings

altipla-consulting/geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo

DEPRECATED: Use https://github.com/altipla-consulting/libs instead.

GoDoc

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.

Install

go get github.com/altipla-consulting/geo

This library has no external dependencies outside the Go standard library.

Usage

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"`
}

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using gofmt.

Running tests

Start the test database:

docker-compose up -d database

Install test libs:

go get github.com/stretchr/testify

Run the tests:

go test

Shutdown the database when finished testing:

docker-compose stop database

License

MIT License