model

package
v0.0.0-...-50fae98 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2013 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPosts

func GetPosts(n int) (results []interface{})

func InsertIntoDB

func InsertIntoDB(atts []interface{})

func OpenConn

func OpenConn() *sql.DB

func TestEmptyDB

func TestEmptyDB() bool

Types

type Post

type Post struct {
	Id        int
	Title     string
	Content   string
	UserId    int
	Published bool
	Created   time.Time
	Modified  time.Time
}

example model for a blog post

Jump to

Keyboard shortcuts

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