config

package
v0.0.0-...-530784d Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

Types

type ConfigType

type ConfigType struct {
	URLNormalisations URLNormalisations `toml:"UrlNormalisations"`
}
var Config ConfigType //nolint:gochecknoglobals

func MakeConfig

func MakeConfig() ConfigType

type URLNormalisations

type URLNormalisations struct {
	AddWWW        []string          `toml:"add-www"`
	RemoveWWW     []string          `toml:"remove-www"`
	ReplaceDomain map[string]string `toml:"replace-domain"`
	ForceHTTPS    []string          `toml:"force-https"`
}

Jump to

Keyboard shortcuts

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