sitemap

package
v0.0.0-...-2aa5ee2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrYamlIsNil   = errors.New("yaml []byte is nil")
	ErrReaderIsNil = errors.New("r io.Reader is nil")
)

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	Title   string
	Content string
}

type Home

type Home struct {
	Name   string
	Author string
	Index  string
}

type Index

type Index struct {
	Chapter string
}

type SiteMap

type SiteMap struct {
	Domain  string
	Home    Home
	Index   Index
	Chapter Chapter
}

func New

func New() *SiteMap

func NewFromFile

func NewFromFile(name string) (*SiteMap, error)

func NewFromReader

func NewFromReader(r io.Reader) (*SiteMap, error)

func NewFromYaml

func NewFromYaml(y []byte) (*SiteMap, error)

func (*SiteMap) String

func (sitemap *SiteMap) String() string

Jump to

Keyboard shortcuts

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