models

package
v0.0.0-...-c688616 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelBlog

func DelBlog(id int)
func GetLink() beedb.Model

Types

type Blog

type Blog struct {
	Id      int `PK`
	Title   string
	Content string
	Created string
}

func GetAll

func GetAll() (blogs []Blog)

func GetBlog

func GetBlog(id int) (blog Blog)

func SaveBlog

func SaveBlog(blog Blog) (bg Blog)

Jump to

Keyboard shortcuts

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