model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Picture

type Picture struct {
	Large struct {
		Size string `json:"size"`
		URL  string `json:"url"`
	} `json:"large"`
}

type Status

type Status struct {
	StatusTitle string    `json:"status_title"`
	CreatedAt   string    `json:"created_at"`
	Text        string    `json:"text"`
	User        User      `json:"user"`
	Bid         string    `json:"bid"`
	Pics        []Picture `json:"pics"`
}

type User

type User struct {
	ScreenName string `json:"screen_name"`
}

type Weibo added in v1.0.4

type Weibo struct {
	Status Status `json:"status"`
}

func (*Weibo) CreateTime added in v1.0.4

func (wb *Weibo) CreateTime() time.Time

func (*Weibo) CreateTimeString added in v1.0.4

func (wb *Weibo) CreateTimeString() string

func (*Weibo) From added in v1.0.4

func (wb *Weibo) From(jsons []byte) (err error)

func (*Weibo) HTML added in v1.0.4

func (wb *Weibo) HTML() (content string)
func (wb *Weibo) Link() string

Jump to

Keyboard shortcuts

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