data

package
v0.0.0-...-8c14db3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func WidgetsToInterfaceSlice

func WidgetsToInterfaceSlice(widgets ...*Widget) []interface{}

Types

type User

type User struct {
	Id      string    `json:"id"`
	Name    string    `json:"name"`
	Widgets []*Widget `json:"widgets"`
}

Model structs

func GetUser

func GetUser(id string) *User

Data accessors

func GetViewer

func GetViewer() *User

type Widget

type Widget struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func GetWidget

func GetWidget(id string) *Widget

func GetWidgets

func GetWidgets() []*Widget

Jump to

Keyboard shortcuts

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