Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadWithPrefix

func LoadWithPrefix(prefix string, v interface{}) error

Types

type HTTPClient

type HTTPClient struct {
	Timeout time.Duration
}

type HTTPServer

type HTTPServer struct {
	Addr         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type MySQL

type MySQL struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
	Location string
}

func (MySQL) DSN

func (m MySQL) DSN() string

DSN returns the MySQL DSN.

type Redis

type Redis struct {
	Addr     string
	Password string
}

Jump to

Keyboard shortcuts

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