meta

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceHeight = -1

DeviceHeight can be used inside Viewport.Height.

View Source
const DeviceWidth = -1

DeviceWidth can be used inside Viewport.Width.

Variables

This section is empty.

Functions

func Charset

func Charset(charset string) seed.Seed

Charset returns an HTML meta element with charset set to the given string.

func Description

func Description(description string) seed.Seed

Description returns an HTML meta element with description set to the given string.

func Key

func Key(name string, content string) seed.Seed

New returns an HTML meta element.

func New

func New(options ...seed.Option) seed.Seed

Types

type Viewport

type Viewport struct {
	Width, Height float32

	InitialScale, MinimumScale, MaximumScale float32

	UserScalable *bool
}

Viewport is an HTML meta viewport specification.

func (Viewport) AddTo

func (v Viewport) AddTo(c seed.Seed)

AddTo implements seed.Option.AddTo

func (Viewport) And

func (v Viewport) And(options ...seed.Option) seed.Option

And implements seed.Option.And

Jump to

Keyboard shortcuts

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