twitter

package
v0.0.0-...-7e94697 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EffectiveUrl

func EffectiveUrl(rawUrl string) (string, error)

func NewProgram

func NewProgram(thread *Embedded) *tea.Program

Types

type Embedded

type Embedded struct {
	Url        string
	AuthorName string `json:"author_name"`
	AuthorUrl  string `json:"author_url"`
	Html       string

	Kind         string `json:"type"`
	PacheAge     string `json:"cache_age"`
	ProviderName string `json:"provider_name"`
	ProviderUrl  string `json:"provider_url"`

	Links []string // NOT in the response
	// contains filtered or unexported fields
}

func Fetch

func Fetch(tweetUrl, ua string, timeout time.Duration) (*Embedded, error)

func (Embedded) String

func (t Embedded) String() (ret string)

type Model

type Model struct {
	*Embedded
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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