posts

package
v0.0.0-...-890b6f7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyLogger = log.New(os.Stderr, "LOG: ", log.Ldate|log.Ltime|log.Lshortfile)

Functions

func OpenDb

func OpenDb() *sql.DB

Types

type Post

type Post struct {
	Id        int64
	Created   int64
	Updated   int64
	Shortlink string
	Url       string
	Comment   string
}

func ListPosts

func ListPosts() []Post

func NewPost

func NewPost(url string, comment string) Post

Jump to

Keyboard shortcuts

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