Started work on returning structs instead of json strings

Lots of tests have been added to the main.go file.  Several of the functions return structs now instead of json strings.  I've added the initial structs for the remaining functions.
This commit is contained in:
Thomas Bennett
2016-05-10 13:31:32 -07:00
parent 136d0df4c9
commit a6028a69aa
8 changed files with 2146 additions and 247 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
go-halo5-api is a wrapper around the Halo5 API as documented at https://developer.haloapi.com.
# Usage
Set your API key as an environment variable
Set your API key as an environment variable. Request and API key at https://developer.haloapi.com/products
```go
export HALO_API_KEY="123456789abcdefghi"
```
@@ -23,7 +23,7 @@ import (
)
func main() {
fmt.Println(vehicles("https://www.haloapi.com", "h5"))
fmt.Println(string(Vehicles("https://www.haloapi.com", "h5")))
}
```
Results: