models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	ID          string   `json:"id"`
	URL         string   `json:"url"`
	Title       string   `json:"title"`
	Image       string   `json:"image"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
}

Link type.

func (*Link) Fill

func (l *Link) Fill(meta *Meta) *Link

Fill function.

func (*Link) ParseTags

func (l *Link) ParseTags(rawTags string) *Link

ParseTags function.

type Meta

type Meta struct {
	Title         string
	Description   string
	Images        []string
	OgTitle       string
	OgSiteName    string
	OgDescription string
	OgImages      []string
}

Meta type.

func ParseMeta

func ParseMeta(buffer io.Reader) (*Meta, error)

ParseMeta function.

Jump to

Keyboard shortcuts

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