variant

package
v0.0.0-...-dad72f4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Objects map[string]*Object
	Keys    []string
)

Functions

This section is empty.

Types

type DumpObject

type DumpObject struct {
	Key     string `json:"key"`
	Name    string `json:"name"`
	Snippet string `json:"snippet"`
}

func ConvertToDumpObject

func ConvertToDumpObject(object *Object) (response *DumpObject)

type Object

type Object struct {
	Key      string    `json:"-"`
	Name     string    `json:"-"`
	Snippet  string    `json:"snippet"`
	Variants []string  `json:"-"`
	Options  []*Option `json:"options"`
}

func Shuffle

func Shuffle(object *Object) (response *Object)

type Option

type Option struct {
	Key  string `json:"key"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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