config

package
v0.0.0-...-c470439 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadYAMLConfig

func ReadYAMLConfig(yamlFilename string, redirs map[string]string) error

ReadYAMLConfig reads the contents of the provided yaml config file and populates the provided mapping in the form [Path] -> Url. It expects the provided yaml config file to be in the format:

  • path: {path} url: {url}

It returns an error in case of an invalid yaml format or io error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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