config

package
v0.0.0-...-c64cc62 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directories

type Directories struct {
	Publ string
	Tmpl string
	Post string
}

Directories represent the needed configurations for posts

type General

type General struct {
	Server      Server
	Directories Directories
	Markdown    goldmark.Markdown
	Templates   *template.Template
	Log         *log.Logger
}

General holds all of the configuration

func New

func New() *General

New returns a default config

type Server

type Server struct {
	Name   string
	Port   uint
	Script string
}

Server holds the configuration needed for the server part

Jump to

Keyboard shortcuts

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