configuration

package
Version: v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(file string)

Types

type Configuration

type Configuration struct {
	Address        string
	Database       string
	DatabaseDriver string
}

Configuration is memory version of config file

func Get

func Get() Configuration

Get configuration loaded from file. This will return always same struct using same config file, with the objective to be accesible everywhere.

Jump to

Keyboard shortcuts

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