Help us shape the future of Go! Take the 2026 Go Developer Survey

kesslercfg

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: MIT Imports: 3 Imported by: 0

README

kesslercfg

A package I use in my go projects for handling Config values.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database struct {
		User     string `json:"user"`
		Host     string `json:"host"`
		Port     string `json:"port"`
		DBName   string `json:"dbname"`
		Password string `json:"password"`
	} `json:"database"`
}

Config holds configuration values

func LoadConfig

func LoadConfig(file string) Config

LoadConfig takes a file and returns a config

Jump to

Keyboard shortcuts

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