Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectResponse ¶
type DirectResponse struct {
Entities []*DirectResponseEntity `json:"entities"`
}
func (*DirectResponse) ToJSON ¶
func (d *DirectResponse) ToJSON() ([]byte, error)
ToJSON returns the direct response as a JSON byte array
func (*DirectResponse) ToToml ¶
func (d *DirectResponse) ToToml() ([]byte, error)
ToToml returns the direct response as a TOML byte array
func (*DirectResponse) ToYAML ¶
func (d *DirectResponse) ToYAML() ([]byte, error)
ToYAML returns the direct response as a YAML byte array
type DirectResponseEntity ¶
type ErrNoAPIKey ¶
ErrNoAPIKey is returned when no API key is provided
type Geocoder ¶
type Geocoder struct {
// contains filtered or unexported fields
}
Geocoder for the weather query
type Option ¶
type Option func(c *Geocoder)
Options for the weather query
func WithDirectUrl ¶
WithDirectUrl sets the direct URL
type ZipResponse ¶
type ZipResponse struct { Zip string `json:"zip"` Name string `json:"name"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Country string `json:"country"` }
func (*ZipResponse) ToJSON ¶
func (z *ZipResponse) ToJSON() ([]byte, error)
ToJSON returns the zip response as a JSON byte array
func (*ZipResponse) ToToml ¶
func (z *ZipResponse) ToToml() ([]byte, error)
ToToml returns the zip response as a TOML byte array
func (*ZipResponse) ToYAML ¶
func (z *ZipResponse) ToYAML() ([]byte, error)
ToYAML returns the zip response as a YAML byte array
Click to show internal directories.
Click to hide internal directories.