Versions in this module Expand all Collapse all v0 v0.2.0 Oct 26, 2021 Changes in this version + const METADATA_FILE + var ErrIsDir = errors.New("File is a directory.") + var ErrNoValid = errors.New("This file is not valid") + var ErrNotIndexed = errors.New("File is not indexed.") + type Content struct + func OpenContent(base string) Content + func (c Content) Categories() Set + func (c Content) CheckInPagesFolder(filename string) (bool, error) + func (c Content) CheckInPostsFolder(filename string) (bool, error) + func (c Content) CreatePageMetadata(filename string) (int64, error) + func (c Content) CreatePostMetadata(filename string) (int64, error) + func (c Content) GetPageFile(filename string) Page + func (c Content) GetPageMetadata(filename string) (Page, error) + func (c Content) GetPages() []Page + func (c Content) GetPostFile(filename string) Post + func (c Content) GetPostMetadata(filename string) (Post, error) + func (c Content) GetPosts() []Post + func (c Content) License() string + func (c Content) Output() (output string) + func (c Content) PostsPerPage() int + func (c Content) SetLicense(license string) error + func (c Content) SetOutput(output string) error + func (c Content) SetPostsPerPage(ppp int) error + func (c Content) SetTitle(title string) error + func (c Content) Title() string + type Element struct + func (e Element) Id() int + func (e Element) Name() string + func (e Element) PostIn(post Post) bool + func (e Element) Posts() []Post + func (e Element) Set() Set + type File struct + func (f *File) SetPath(path string) + func (f File) Id() int64 + func (f File) IsValid() bool + func (f File) Name() string + func (f File) Path() string + type Filer interface + Fill func(*sql.Row, string) error + FillFromRows func(*sql.Rows, string) error + Header func() string + Id func() int64 + Name func() string + Path func() string + type Page struct + func (p *Page) Fill(row *sql.Row, basePath string) error + func (p *Page) FillFromRows(rows *sql.Rows, basePath string) error + func (p *Page) SetReference(reference string) error + func (p Page) Header() string + type Post struct + func (p *Post) Fill(row *sql.Row, basePath string) error + func (p *Post) FillFromRows(rows *sql.Rows, basePath string) error + func (p Post) Date() time.Time + func (p Post) Header() string + func (p Post) SetDate(date string) error + type Set struct + func (s Set) AddElement(element string) (int64, error) + func (s Set) AddPostForElement(post Post, element string) error + func (s Set) DeleteUnusedElements() + func (s Set) Elements() []Element + func (s Set) Name() string + func (s Set) RemovePostForElement(post Post, element string) error