Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignURL ¶
SignURL signs a url with a signature. The signature is assumed to be in URL safe base64 encoding. The returned signature string is URLEncoded. See: https://developers.google.com/maps/documentation/business/webservices/auth#digital_signatures See: https://developers.google.com/maps/faq#using-google-maps-apis
Types ¶
type DateTime ¶
type DateTime struct { // Text is the time specified as a string. The time is displayed in // the corresponding TimeZone. Text string `json:"text"` // TimeZone is the name of the time zone in the IANA Time Zone Database. For // example, "America/New_York" or "Australia/Sydney". TimeZone string `json:"time_zone"` // Value is the number of seconds since midnight 01 January, 1970 UTC. Value int64 `json:"value"` }
DateTime is the public API representation of a point in time.
func NewDateTime ¶
NewDateTime builds a DateTime from the given time.Time. This will be nil if time.Time is the zero time.
type Duration ¶
type Duration struct { // Value indicates the duration, in seconds. Value int64 `json:"value"` // Text contains a human-readable representation of the duration. Text string `json:"text"` }
Duration is the public API representation of a duration.
func NewDuration ¶
NewDuration builds an internal Duration from the passed time.Duration.
Click to show internal directories.
Click to hide internal directories.