Documentation
¶
Index ¶
- func GetImage(node *html.Node) (name, url string)
- func GetLink(node *html.Node) (name, link string)
- func IsValidImageUrl(url string) bool
- func NewWriter() *writer
- func RemoveUnnecessaryTokens(c string) string
- type Saver
- func (s *Saver) AddImageUrl(imageUrl ...string)
- func (s *Saver) GetImageDir() string
- func (s *Saver) GetImagePath(postId, imageUrl string) string
- func (s *Saver) GetPostDir() string
- func (s *Saver) SaveImage(postId, url string) error
- func (s *Saver) SavePost(postId, year, month, day, title, contnet string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidImageUrl ¶
func RemoveUnnecessaryTokens ¶
Types ¶
type Saver ¶
type Saver struct { ID int // contains filtered or unexported fields }
func (*Saver) AddImageUrl ¶
func (*Saver) GetImageDir ¶
func (*Saver) GetImagePath ¶
func (*Saver) GetPostDir ¶
Click to show internal directories.
Click to hide internal directories.