config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadJSON

func ReadJSON(configPath string) error

ReadJSON reads a JSON config and writes it to “Conf”.

Types

type Config

type Config struct {
	Address  string `json:"address"`
	Port     int    `json:"port"`
	Database string `json:"database"`
}
var Conf Config

Jump to

Keyboard shortcuts

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