gocn

package
v0.0.0-...-eb64f0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoCNCrawler

func NewGoCNCrawler(dataCh chan crawler.Data, finishCh chan struct{}) crawler.Crawler

NewGoCNCrawler generates a crawler for gocn news.

Types

type GocnData

type GocnData struct {
	// Source -
	Source string
	// Date -
	Date string
	// Title -
	Title string
	// URL -
	URL string
	// Text -
	Text []News
	// FileType -
	FileType string
}

GocnData -

func (*GocnData) File

func (data *GocnData) File() (title, filetype, content string)

File return "", "", "".

func (*GocnData) IsFile

func (data *GocnData) IsFile() bool

IsFile return false.

func (*GocnData) String

func (data *GocnData) String() string

type News

type News struct {
	// Title -
	Title string
	// URL -
	URL string
}

News -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL