parser

package
v0.0.0-...-098d518 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedPlaceholder

func EmbedPlaceholder(src string) string

Types

type Embed

type Embed struct {
	Type string
	Src  string
}

type Layout

type Layout struct {
	Src    string
	CSS    []string
	Js     []string
	Embeds []Embed
}

func ParseLayout

func ParseLayout(doc *html.Node) Layout

type Page

type Page struct {
	Layout *Layout
	Embeds []Embed
}

func ParsePage

func ParsePage(doc *html.Node) Page

Jump to

Keyboard shortcuts

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