The highest tagged major version is
v2.
package
module
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Jan 19, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Apixu Go
Go package for Apixu Weather API
Install
go get github.com/apixu/apixu-go
Usage
See the examples and run them with: GO111MODULE=on APIXUKEY=yourapikey go run examples/<dirname>/main.go
Error handling
For more details of an API method error, assert it to the apixu.Error type.
Full documentation of Apixu API
https://www.apixu.com/doc/
Extending the package
See the extend example.
See Makefile file.
Documentation
¶
Package apixu provides interaction with Apixu Weather service
Apixu defines methods implemented by Apixu Weather API
New creates an Apixu package instance
Config is used to set up the Apixu service instance with the following:
Version: API version
Format: API response format (JSON or XML)
ApiKey: API key generated on Apixu website
Error adds error details based on the API error response
Response provides extra error info
Source Files
¶
Directories
¶
examples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package formatter provides methods to convert JSON/XML strings to provided types
|
Package formatter provides methods to convert JSON/XML strings to provided types |
|
|
|
|
Click to show internal directories.
Click to hide internal directories.