https://github.com/previousdeveloper/postcodes-go-client
Go library for interacting with the excellent Postcodes.io service
https://github.com/previousdeveloper/postcodes-go-client
postcodes
Last synced: 2 months ago
JSON representation
Go library for interacting with the excellent Postcodes.io service
- Host: GitHub
- URL: https://github.com/previousdeveloper/postcodes-go-client
- Owner: previousdeveloper
- License: apache-2.0
- Created: 2020-03-30T15:10:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T21:28:03.000Z (about 5 years ago)
- Last Synced: 2024-12-29T06:29:41.722Z (4 months ago)
- Topics: postcodes
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# postcodes-go-client


-------------Go library for interacting with the excellent [Postcodes.io][1] service.
### Usage
```go
config := postcode.DefaultConfig()
postCodeClient := postcode.NewPostCode(config)
a := postCodeClient.BulkLookupPostcode(&model.BulkPostCodeRequest{Postcodes: []string{"OX49 5NU"}})
fmt.Println(a.Result[0].Result)```
----------Installation
-------------```bash
go get github.com/previousdeveloper/postcodes-go-client
```
### ContributionsFeel free to make contributions via a pull request. Please keep the tests current (and add, if necessary).
[1]: http://postcodes.io/