hhc

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_TEXT_SITE_PROPERTIES = "text/site properties"
	TYPE_TEXT_SITEMAP         = "text/sitemap"
)

Variables

This section is empty.

Functions

func Encode

func Encode(w io.Writer, objects Objects) error

Encode converts a Objects tree to HHC document.

Types

type Object

type Object struct {
	Type    string
	Params  Params
	Objects Objects `json:",omitempty"`
}

type Objects

type Objects []Object

func Decode

func Decode(r io.Reader, objectType string) (Objects, error)

Decode parses a HHC document and put all objects into a Objects tree. If objectType is not empty, only objects having that type are included.

type Params

type Params = map[string]string

Jump to

Keyboard shortcuts

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