common

package
v0.0.0-...-9c64050 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIurl = "https://api.twitter.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations struct {
	Start          int     `json:"start"`
	End            int     `json:"end"`
	Probability    float64 `json:"probability"`
	Type           string  `json:"type"`
	NormalizedText string  `json:"normalized_text"`
}

type Data

type Data struct {
	AuthorID          string    `json:"author_id"`
	CreatedAt         time.Time `json:"created_at"`
	Entities          Entities  `json:"entities"`
	ID                string    `json:"id"`
	Lang              string    `json:"lang"`
	PossiblySensitive bool      `json:"possibly_sensitive"`
	Source            string    `json:"source"`
	Text              string    `json:"text"`
}

type Entities

type Entities struct {
	Mentions    []Mentions    `json:"mentions,omitempty"`
	Annotations []Annotations `json:"annotations,omitempty"`
	Urls        []Urls        `json:"urls,omitempty"`
	Hashtags    []Hashtags    `json:"hashtags,omitempty"`
}

type Hashtags

type Hashtags struct {
	Start int    `json:"start"`
	End   int    `json:"end"`
	Tag   string `json:"tag"`
}

type Images

type Images struct {
	URL    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

type Mentions

type Mentions struct {
	Start    int    `json:"start"`
	End      int    `json:"end"`
	Username string `json:"username"`
	ID       string `json:"id"`
}

type Tweet

type Tweet struct {
	Data Data `json:"data"`
}

type Urls

type Urls struct {
	Start       int      `json:"start"`
	End         int      `json:"end"`
	URL         string   `json:"url"`
	ExpandedURL string   `json:"expanded_url"`
	DisplayURL  string   `json:"display_url"`
	Images      []Images `json:"images"`
	Status      int      `json:"status"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	UnwoundURL  string   `json:"unwound_url"`
}

Jump to

Keyboard shortcuts

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