config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppTitle      string `mapstructure:"appTitle"`
	GinMode       string `mapstructure:"ginMode"`
	Address       string `mapstructure:"address"`
	Port          string `mapstructure:"port"`
	TemplatesPath string `mapstructure:"templatesPath"`
	WebRootPath   string `mapstructure:"webRootPath"`

	Db Db `mapstructure:"db"`
}

func LoadConfig

func LoadConfig() (config Config, err error)

type Db

type Db struct {
	Driver string `mapstructure:"driver"`
	Url    string `mapstructure:"url"`
}

Jump to

Keyboard shortcuts

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