config

package
v0.0.0-...-fa05739 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	// Application's port
	Port int

	// Database connection string
	DatabaseConnString string
}

Settings loaded from the configuration file.

func ReadFile

func ReadFile(path string) (s Settings, err error)

ReadFile loads the settings from a configuration file. Source https://github.com/plifk/market/blob/c97fb9123dc35141c0f08ae9c411b6bd1a603fb7/internal/config/config.go#L71

Jump to

Keyboard shortcuts

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