config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "novus.yml"

Variables

This section is empty.

Functions

func AppName

func AppName() string

func ConfigFileExists

func ConfigFileExists() bool

func SetAppName

func SetAppName(name string)

func WriteDefaultFile

func WriteDefaultFile(appName string)

Types

type NovusConfig

type NovusConfig struct {
	AppName string         `yaml:"appName" validate:"required"`
	Routes  []shared.Route `yaml:"routes" validate:"required,unique_routes,dive"`
}

func LoadFile

func LoadFile() (NovusConfig, bool)

Jump to

Keyboard shortcuts

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