twitter

package
v0.0.0-...-cb42137 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitterCard

type TwitterCard struct {
	Card        string         `json:"card"`
	Site        *TwitterSite   `json:"site"`
	Creator     *TwitterSite   `json:"creator"`
	Description string         `json:"description"`
	Title       string         `json:"title"`
	Image       *TwitterImage  `json:"image"`
	Player      *TwitterPlayer `json:"player"`
}

func GetTwitterCard

func GetTwitterCard(meta []map[string]string) *TwitterCard

type TwitterImage

type TwitterImage struct {
	Url string `json:"url"`
	Alt string `json:"alt"`
}

type TwitterPlayer

type TwitterPlayer struct {
	Url    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
	Stream string `json:"stream"`
}

type TwitterSite

type TwitterSite struct {
	User      string `json:"user"`
	TwitterID string `json:"twitter_id"`
}

Jump to

Keyboard shortcuts

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