config

package
v0.0.0-...-840ed2a Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "K1S_"
View Source
const Port = 1378

Variables

This section is empty.

Functions

func Default

func Default() *structs.Structs

Types

type Config

type Config struct {
	Server Server `koanf:"server"`
}

func Init

func Init(configFileName string) Config

type Server

type Server struct {
	Port            int    `koanf:"port"`
	GreetingMessage string `koanf:"greeting"`
}

Jump to

Keyboard shortcuts

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