config

package
v0.0.0-...-32aeb84 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SiteConfig

type SiteConfig struct {
	BaseURL string            `yaml:"baseURL"`
	Title   string            `yaml:"title"`
	Index   string            `yaml:"index"`
	Params  map[string]string `yaml:"params"`
}

SiteConfig contains all info from config.yml

func FromFile

func FromFile(f *fs.FS, name string) (*SiteConfig, error)

FromFile loads config from given file

Jump to

Keyboard shortcuts

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