design

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WorldLocation = Type("WorldLocation", func() {
	Description("Geographical location")
	Field(1, "lat", Float64, "Latitude", func() {
		Example(37.8267)
	})
	Field(2, "long", Float64, "Longitude", func() {
		Example(-122.4233)
	})
	Field(3, "city", String, "City", func() {
		Example("San Francisco")
	})
	Field(4, "region", String, "State, region etc.", func() {
		Example("CA")
	})
	Field(5, "country", String, "Country", func() {
		Example("USA")
	})
	Required("lat", "long", "city", "region", "country")
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL