Documentation
¶
Index ¶
- Variables
- type AutoNews
- func (g *AutoNews) Crawl(ctx context.Context, url string) (html string, err error)
- func (g *AutoNews) GeneratePost(ctx context.Context, url string) (title string, summary string, err error)
- func (g *AutoNews) NewsTitle(ctx context.Context, text string) (title string, err error)
- func (g *AutoNews) Title(ctx context.Context, text string) (title string, err error)
- func (g *AutoNews) Translate(ctx context.Context, text string) (translated string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSummaryNotProvided = errors.New("summary not provided")
View Source
var ErrTitleFailed = errors.New("title failed")
View Source
var ErrTranslationFailed = errors.New("translation failed")
Functions ¶
This section is empty.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.