Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The state that is fooey. FOO = FooState(101) // The state that is barry. BAR = FooState(202) )
some constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FooDetails ¶
type FooDetails struct { // ID is a unique identifier for this foo ID int64 `json:"id"` // Name is the display name for this foo Name string `json:"name"` // Categories is a slice of category names Categories []string `json:"categories"` }
FooDetails provide the gory details for your foo.
func (*FooDetails) String ¶
func (d *FooDetails) String() string
String implements the fmt.Stringer interface
Click to show internal directories.
Click to hide internal directories.