config

package
v0.0.0-...-f5ef94b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package config provides the configuration of levin.

Index

Constants

This section is empty.

Variables

View Source
var C config

C is the global config of levin.

Functions

func Load

func Load(configPath string) error

Load loads the config. If configPath is not empty, the config at that path will be loaded, instead of searching in the current directory, ./config and $CONFIG_DIR/

func Zero

func Zero()

Zero sets all config fields to their zero values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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