config

package
v0.0.0-...-5e38327 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(fname string) error

Parse generates a new Config instance starting from a configuration file path

Types

type Config

type Config struct {
	Github struct {
		API string `yaml:"api"`
	} `yaml:"github"`
	Gitlab struct {
		API string `yaml:"api"`
	} `yaml:"gitlab"`
}

Config represents the abstraction of the parsed configuration file

func Get

func Get() *Config

Get current config instance

Jump to

Keyboard shortcuts

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