components

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Name string
	URL  string
}

func (*Audio) GetContent

func (c *Audio) GetContent() template.HTML

type Component

type Component interface {
	GetContent() template.HTML
}

type File

type File struct {
	Name string
	URL  string
}

func (*File) GetContent

func (c *File) GetContent() template.HTML

type Html

type Html struct {
	Name  string
	Title string
	Page  Component
	// contains filtered or unexported fields
}

func (*Html) GetContent

func (c *Html) GetContent() template.HTML

func (*Html) SetCss

func (c *Html) SetCss(css template.CSS)

func (*Html) SetJs

func (c *Html) SetJs(js template.JS)

type Image

type Image struct {
	Name string
	URL  string
}

func (*Image) GetContent

func (c *Image) GetContent() template.HTML
type Link struct {
	Name  string
	Title string
	URL   string
}

func (*Link) GetContent

func (c *Link) GetContent() template.HTML

type List

type List struct {
	Items []Component
}

func (*List) GetContent

func (c *List) GetContent() template.HTML

type Location

type Location struct {
	Name string
	URL  string
}

func (*Location) GetContent

func (c *Location) GetContent() template.HTML

type Page

type Page struct {
	Title   string
	Content Component
}

func (*Page) GetContent

func (c *Page) GetContent() template.HTML

type Script

type Script struct {
	Name string
	Code string
}

func (*Script) GetContent

func (c *Script) GetContent() template.HTML

type Text

type Text struct {
	Name  string
	Title string
}

func (*Text) GetContent

func (c *Text) GetContent() template.HTML

type Video

type Video struct {
	Name string
	URL  string
}

func (*Video) GetContent

func (c *Video) GetContent() template.HTML

Jump to

Keyboard shortcuts

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