Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
Executes a database query that returns rows. The structure of the rows is determined by the type parameter.
func QueryScalar ¶
Executes a database query that returns a single scalar value. The type parameter determines the type of the scalar value.
Types ¶
type Location ¶
Represents a location on Earth, having longitude and latitude coordinates. Correctly serializes to and from a SQL point type, in (longitude, latitude) order.
Note that this struct is identical to the Point struct, but uses different field names.
func NewLocation ¶
Creates a new Location with the specified longitude and latitude coordinates.
Click to show internal directories.
Click to hide internal directories.