embed

package
v0.0.0-...-36ca5f9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotImplemented = errors.New("embed: embedded source (e.g. yt, gfycat, etc.) is not implemented")
)

Functions

This section is empty.

Types

type Embedder

type Embedder interface {
	Embed(*reddit.Post) (string, error)
}

func NewEmbedder

func NewEmbedder() Embedder

type Source

type Source string
const (
	Youtube Source = "youtube.com"
	Gfycat  Source = "gfycat.com"
)

possible sources that are already implemented; to be expanded

Jump to

Keyboard shortcuts

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