Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Medium ¶
Medium represents blog class
func (*Medium) Handler ¶
func (m *Medium) Handler() http.HandlerFunc
Handler handles http request and return response
type Node ¶
type Node struct {
Tag string `json:"tag"`
Text string `json:"text"`
Attrs []map[string]string `json:"attrs"`
Children []*Node `json:"children"`
}
Node represents DOM element in HTML
func TokenizeHTML ¶
TokenizeHTML parses html string into Node struct
type Post ¶
type Post struct {
ID string `json:"id"`
Title string `json:"title"`
Link string `json:"link"`
Published string `json:"published"`
Author string `json:"author"`
Categories []string `json:"categories"`
Content *Node `json:"content"`
}
Post represents single post in blog api response body
Click to show internal directories.
Click to hide internal directories.