Documentation
¶
Index ¶
- type Post
- type PostDB
- func (pdb *PostDB) Close()
- func (pdb *PostDB) CreateNewPost(post Post) (*sql.Result, error)
- func (pdb *PostDB) DeletePostByID(id string) error
- func (pdb *PostDB) GetAllPosts() ([]Post, error)
- func (pdb *PostDB) GetPostByID(id string) ([]Post, error)
- func (pdb *PostDB) GetPostByTitle(title string) ([]Post, error)
- func (pdb *PostDB) Init() error
- type PostImage
- type PostMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct {
Metadata PostMetadata `json:"metadata"`
Filepath string
}
func LoadFromMarkdown ¶
func LoadFromMarkdownFile ¶
func (*Post) RenderHTML ¶
type PostDB ¶
type PostDB struct {
// contains filtered or unexported fields
}
func ConnectToPostDB ¶
func (*PostDB) DeletePostByID ¶
func (*PostDB) GetAllPosts ¶
type PostMetadata ¶
Click to show internal directories.
Click to hide internal directories.