config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package config is for working with the configuration file and options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) *viper.Viper

Get fetches the stored configuration settings from the context.

func Load

func Load(ctx context.Context) (context.Context, *viper.Viper)

Load loads the configuration file and returns a pointer to the configuration.

Types

type ContextCfg

type ContextCfg string

ContextCfg is the key used when getting/setting the Config struct from the context object.

Jump to

Keyboard shortcuts

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