test

package
v0.0.0-...-1f5e42c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayTestPage

func DisplayTestPage(resp http.ResponseWriter, req *http.Request, db *xorm.Engine, params martini.Params) string

DisplayTestPage is a test controller or view that

Types

type TestTable

type TestTable struct {
	Id       int64
	Name     string
	Location string `xorm:"longtext not null"` // this is how you can apply some custom stuff .
	Salary   int64
}

TestTable is a sample struct which will be used to represent a table in database.

func (*TestTable) Update

func (c *TestTable) Update(db *xorm.Engine) error

Update is a sample function that will update a record stored in table created by struct TestTable.

Jump to

Keyboard shortcuts

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