conf

package
v0.0.0-...-365deaf Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(cfg Conf) error

Types

type Conf

type Conf struct {
	WorkDir string   `json:"work_dir" validate:"required,gt=0"`
	Files   FilesCfg `json:"files"`
}

func Load

func Load(fName string) (*Conf, error)

type FilesCfg

type FilesCfg struct {
	NewUserTemplate string `json:"new_user_template" validate:"required,gt=0"`
}

Jump to

Keyboard shortcuts

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