Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T21:28:03.000Z (over 4 years ago)
- Last Synced: 2024-10-12T01:44:38.903Z (about 1 month 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 Report Card](https://goreportcard.com/badge/github.com/previousdeveloper/postcodes-go-client)
![Build](https://travis-ci.org/previousdeveloper/postcodes-go-client.svg?branch=master)
-------------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/