article

package
v0.0.0-...-c3d36f5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Id         string              `json:"id"`
	Title      map[Language]string `json:"title"`
	Body       map[Language]string `json:"body,omitempty"`
	DatePosted time.Time           `json:"posted"`
	DateEdited time.Time           `json:"edited,omitempty"`
}

type ArticleList

type ArticleList []*Article

func (ArticleList) Len

func (l ArticleList) Len() int

Make slices of article pointers sortable by posting time.

func (ArticleList) Less

func (l ArticleList) Less(i, j int) bool

func (ArticleList) Swap

func (l ArticleList) Swap(i, j int)

type Language

type Language string
const (
	English  Language = "ENG"
	Japanese Language = "日本語"
)

Jump to

Keyboard shortcuts

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