meta

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct {
	Title       string
	Author      string
	Keywords    string
	Description string
}

func (*Default) HTML

func (def *Default) HTML() string

type MetaInfo

type MetaInfo struct {
	Default   *Default
	OpenGraph *OpenGraph
	Twitter   *Twitter
}

func (*MetaInfo) GetHTML

func (mi *MetaInfo) GetHTML() string

type OpenGraph

type OpenGraph struct {
	Title       string
	Image       string
	Url         string
	Description string
	Type        string
}

func (*OpenGraph) HTML

func (og *OpenGraph) HTML() string

type Twitter

type Twitter struct {
	Card        string
	Title       string
	Image       string
	Site        string
	Description string
}

func (*Twitter) HTML

func (t *Twitter) HTML() string

Source Files

  • basic.go
  • default.go
  • open_graph.go
  • twitter.go

Jump to

Keyboard shortcuts

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