ptt

package
v0.0.0-...-01a8f60 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDocument

func GetDocument(url string) (*goquery.Document, error)

func IsUrlValid

func IsUrlValid(url string) (bool, error)

func NewBoard

func NewBoard(url string) error

Types

type Article

type Article struct {
	Title               string
	Author              string
	Date                string
	Content             string
	Ip                  string
	Comments            []Comment
	All, Count, P, B, N int
}

func NewArticle

func NewArticle(url string) (*Article, error)

func (*Article) String

func (a *Article) String() string

type Board

type Board struct {
	// contains filtered or unexported fields
}

type Comment

type Comment struct {
	PushTag        string
	PushUserID     string
	PushContent    string
	PushIpdatetime string
}

func (*Comment) String

func (c *Comment) String() string

Jump to

Keyboard shortcuts

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