Documentation
¶
Index ¶
- func GetBlogspotAuthor(doc *goquery.Document) (string, error)
- func GetBlogspotContent(doc *goquery.Document) (string, error)
- func GetBlogspotSummary(doc *goquery.Document) (string, error)
- func GetBlogspotTags(doc *goquery.Document) (string, error)
- func GetBlogspotTimeStamp(doc *goquery.Document) (string, error)
- func GetBlogspotTitle(doc *goquery.Document) (string, error)
- func GetBlogspotUrl(doc *goquery.Document) (string, error)
- func GetContent(doc *goquery.Document) (string, error)
- func GetImageUrl(doc *goquery.Document) (string, error)
- func GetTemplatePath(post *FBPostData) (tmplpath, filename string)
- func GetTimeStamp(doc *goquery.Document) (string, error)
- func ParseTimeStamp(utime string) (string, error)
- func QuerySelector(s object, selector string) *goquery.Selection
- func SaveRst(filepath, rst string) error
- func SetRstDocTitleWidth(s string) (r string, err error)
- func TitleWidth(t string) int
- func ToreStructuredText(post *FBPostData, tmplpath string) (string, error)
- type FBPostData
- type ProfileLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplatePath ¶
func GetTemplatePath(post *FBPostData) (tmplpath, filename string)
func ParseTimeStamp ¶
func QuerySelector ¶
func SetRstDocTitleWidth ¶
First two line of the string may look like:
Hello World #######
will become
Hello World ###########
after processing of this func
func TitleWidth ¶
func ToreStructuredText ¶
func ToreStructuredText(post *FBPostData, tmplpath string) (string, error)
Types ¶
type FBPostData ¶
type FBPostData struct { PostUrl string TimeStamp string ProfileLink *ProfileLink ImageUrl string Content string Summary string Title string Author string Tags string }
func Parse ¶
func Parse(url string) (*FBPostData, error)
func ParseBlogspotPost ¶
func ParseBlogspotPost(doc *goquery.Document) (*FBPostData, error)
func ParsePost ¶
func ParsePost(s, posturl string) (*FBPostData, error)
type ProfileLink ¶
func GetProfileLink ¶
func GetProfileLink(doc *goquery.Document) (*ProfileLink, error)
Click to show internal directories.
Click to hide internal directories.