config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 2 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 {
	// AppName is the name of the application.
	AppName string `env:"APP_NAME" envDefault:"myapp"`

	// Server config.
	Server srv.Config `envPrefix:"SERVER_"`

	// Database config.
	Database db.Config `envPrefix:"DB_"`

	// Logging config.
	Logging Logging `envPrefix:"LOG_"`
}

type Logging

type Logging struct {
	// Level of the logging.
	Level string `env:"LEVEL" envDefault:"info"`
	// Format of the logging.
	Format string `env:"FORMAT" envDefault:"json"`
}

Jump to

Keyboard shortcuts

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