db

package
v0.0.0-...-37bbf14 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArticles

func GetArticles(id int64, page int64) []model.Article

GetArticles 根据article_id 获取article 如果id == -1 表示获取所有articles return []Article. if not found, len(articles)==0

func GetDBPATH

func GetDBPATH() string

func GetUser

func GetUser(username string) model.User

func Init

func Init()

func PutArticles

func PutArticles(articles []model.Article) error

PutArticles : put articles to article of blog.db

func PutUsers

func PutUsers(users []model.User) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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