settings

package
v0.0.0-...-b98da92 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string, settings *Settings) error

func Write

func Write(path string, config *Settings) error

func WriteDefault

func WriteDefault(path string) error

Types

type PageLayout

type PageLayout struct {
	Page    string  `toml:"page"`
	Columns int     `toml:"columns"`
	Code    float64 `toml:"code_font_size"`
	Header  float64 `toml:"header_font_size"`
	Index   float64 `toml:"index_font_size"`
}

type Settings

type Settings struct {
	Title      string     `toml:"title"`
	Theme      string     `toml:"theme"`
	Source     Source     `toml:"source"`
	PageLayout PageLayout `toml:"page_layout"`
}

func GetDefault

func GetDefault() *Settings

type Source

type Source struct {
	Roots  []string `toml:"roots"`
	Ignore []string `toml:"ignore"`
}

Jump to

Keyboard shortcuts

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