datebase

package
v0.0.0-...-2993106 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Posts

func Posts(DB *bolt.DB, section string, id int) []string

func SaveBlog

func SaveBlog(DB *bolt.DB, section string, blog Blog) error

func Sections

func Sections(DB *bolt.DB) []string

Types

type Blog

type Blog struct {
	ID         int
	Title      string
	Content    string
	Label      []string
	Owner      string
	CreateTime time.Time
}

func LoadBlog

func LoadBlog(DB *bolt.DB, section string, id int) Blog

Jump to

Keyboard shortcuts

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