viperloader

package module
v0.0.0-...-f429d09 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 2 Imported by: 0

README

Viper-loader load configs files for viper.

Install

go get github.com/Kamva/viper-loader

Todo:

  • Tests
  • Add badges to readme.
  • CI

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Version specify current package version.

Variables

This section is empty.

Functions

func DefaultEnvViper

func DefaultEnvViper(configStruct interface{}, envPrefix string, file string) (*viper.Viper, error)

defaultViper make new instance of viper with viperDriver to read from .env file. file is absolute string path of file. e.g `gutil.SourcePath()+"../.env"`

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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