cmd

package
v0.0.0-...-4fedfb9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "blockstack-twitter",
	Short: "A brief description of your application",
	Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Scam

type Scam struct {
	User ScamUser `json:"user"`
}

type ScamUser

type ScamUser struct {
	Name       string `json:"name"`
	ScreenName string `json:"screen_name"`
}

type Tweets

type Tweets []twitter.Tweet

func (Tweets) Len

func (t Tweets) Len() int

func (Tweets) Less

func (t Tweets) Less(i, j int) bool

func (Tweets) Swap

func (t Tweets) Swap(i, j int)

type TwitterClient

type TwitterClient struct {
	Client *twitter.Client
	Tweets []twitter.Tweet
}

TwitterClient is a twitter client

func NewTwitterClient

func NewTwitterClient() *TwitterClient

NewTwitterClient does the things

Jump to

Keyboard shortcuts

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