Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```
### Contributions

Feel free to make contributions via a pull request. Please keep the tests current (and add, if necessary).

[1]: http://postcodes.io/