blog

package
v0.0.0-...-bd79582 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThemeDir string

ThemeDir

Functions

func Generate

func Generate() (err error)

Generate ...

func New

func New(title string, tags []string, content string, category bool)

New ...

Types

type Article

type Article struct {
	Title         string    `json:"title"`
	Date          *JSONTime `json:"date"`
	Tags          []string  `json:"tags"`
	Category      bool      `json:"category"`
	*JSONFileInfo `json:"fileInfo"`
}

Article ...

type Blog

type Blog struct {
	// contains filtered or unexported fields
}

Blog ias ...

func (*Blog) Generate

func (blog *Blog) Generate() (err error)

Generate ...

type By

type By func(i1, i2 interface{}) bool

By ...

func (By) Sort

func (by By) Sort(s []interface{})

Sort ...

type Config

type Config struct {
	Title     string `json:"title"`
	Subtitle  string `json:"subtitle"`
	Author    string `json:"author"`
	Email     string `json:"email"`
	URL       string `json:"url"`
	Root      string `json:"root"`
	SourceDir string `json:"sourceDir"`
	PublicDir string `json:"publicDir"`
	Disqus    string `json:"disqus"`
	Analyze   string `json:"analyze"`
}

Config ...

func GetConfig

func GetConfig() Config

GetConfig ...

type Item

type Item interface{}

Item ...

type JSONFileInfo

type JSONFileInfo struct {
	FName    string      `json:"name"`
	FSize    int64       `json:"size"`
	FMode    os.FileMode `json:"mode"`
	FModTime *JSONTime   `json:"modTime"`
	FIsDir   bool        `json:"isDir"`
}

JSONFileInfo ...

func (JSONFileInfo) IsDir

func (f JSONFileInfo) IsDir() bool

IsDir ...

func (JSONFileInfo) ModTime

func (f JSONFileInfo) ModTime() *JSONTime

ModTime ...

func (JSONFileInfo) Mode

func (f JSONFileInfo) Mode() os.FileMode

Mode ...

func (JSONFileInfo) Name

func (f JSONFileInfo) Name() string

Name ...

func (JSONFileInfo) Size

func (f JSONFileInfo) Size() int64

Size ...

type JSONTime

type JSONTime struct {
	time.Time
}

JSONTime ...

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*JSONTime) UnmarshalJSON

func (t *JSONTime) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON ...

Jump to

Keyboard shortcuts

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