model

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 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 RenderData

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

func (*RenderData) CreateTime

func (r *RenderData) CreateTime() time.Time

func (*RenderData) CreateTimeString

func (r *RenderData) CreateTimeString() string

func (*RenderData) From

func (r *RenderData) From(data []byte) (err error)

func (*RenderData) HTML

func (r *RenderData) HTML() (s string)
func (r *RenderData) Link() string

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"`
}

Jump to

Keyboard shortcuts

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