config

package
v0.0.0-...-0da9e86 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadStaticURLs

func LoadStaticURLs(filename string) (map[string]string, error)

LoadStaticURLs loads the static urls yaml file into a map and returns it, or an error.

func LoadTemplate

func LoadTemplate() *template.Template

LoadTemplate loads the template for the encoding responses

Types

type Args

type Args struct {
	Debug          bool
	HomepageURL    string
	Scheme         string
	Listen         string
	StaticURLsFile string
	QueryStringKey string
	Version        bool
}

Args are the arguments that can be used in this binary.

func ParseArgs

func ParseArgs() Args

ParseArgs parses the command line arguments

func (Args) Check

func (a Args) Check() error

Check validates the arguments

Jump to

Keyboard shortcuts

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