meta

package
v0.0.0-...-460bf00 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMetaExtraction = errors.New("errors while extracting metadata")
View Source
var ErrMetaNotSupported = errors.New("can't handle this")

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Extract(url string) (*MetaData, error)
}

type Generic

type Generic struct{}

func (Generic) Extract

func (Generic) Extract(url string) (*MetaData, error)

type Github

type Github struct{}

func (Github) Extract

func (Github) Extract(url string) (*MetaData, error)

type MetaData

type MetaData struct {
	Description string
	Tags        string
}

func Extract

func Extract(url string) *MetaData

Jump to

Keyboard shortcuts

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