model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tweet

type Tweet struct {
	ID           int64  `json:"id"`
	CreatedAt    string `json:"created_at"`
	User         *User  `json:"user"`
	Text         string `json:"text"`
	RetweetCount int    `json:"retweet_count"`
}

Tweet define a tweet

func (*Tweet) String

func (t *Tweet) String() string

String stringify the Tweet struct

type User

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

User define a user

func (*User) String

func (u *User) String() string

String stringify the User struct

Jump to

Keyboard shortcuts

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