config

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Author string
	Title  string

	URL     string
	Favicon string

	ShowArchive    bool
	ShowCategories bool
	ShowTags       bool

	PaginationSize int

	DisqusSitename     string
	GoogleAnalyticsID  string
	ShareThisPublisher string
}

Config stores the configurations readed from the JSON file.

func New

func New(configFile string) (*Config, error)

New returns a New configuration after parse the file received as input.

type ErrorOpeningConfigFile

type ErrorOpeningConfigFile error

ErrorOpeningConfigFile will be raised when the file doesn't exist.

type ErrorParsingConfigFile

type ErrorParsingConfigFile error

ErrorParsingConfigFile will be raised when the JSON config is malformed.

Jump to

Keyboard shortcuts

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