config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHub GitHub `mapstructure:"github"`
	Logs   Logs   `mapstructure:"log"`
}

Config defines the general configuration.

func Load

func Load() *Config

Load initializes a default configuration struct.

type GitHub

type GitHub struct {
	Token string `mapstructure:"token"`
}

GitHub defines the github configuration.

type Logs

type Logs struct {
	Level  string `mapstructure:"level"`
	Pretty bool   `mapstructure:"pretty"`
	Color  bool   `mapstructure:"color"`
}

Logs defines the level and color for log configuration.

Jump to

Keyboard shortcuts

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