models

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTodoList

func DefaultTodoList(c context.Context) *datastore.Key

Types

type Todo

type Todo struct {
	Id      int64     `json:"id" datastore:"-"`
	Text    string    `json:"text" datastore:",noindex"`
	Done    bool      `json:"done"`
	Created time.Time `json:"created"`
}

func (*Todo) Save

func (t *Todo) Save(c context.Context) (*Todo, error)

Jump to

Keyboard shortcuts

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