config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig[T any]() *T

func Initialize

func Initialize[T any](schema *T, mappers ...scanner.Mapper) error

func ParseSchema

func ParseSchema(schema any) error

func Summarize

func Summarize(schema any) string

Types

type Entry

type Entry struct {
	Name    string `json:"name"`
	Default any
}

type SliceMapper

type SliceMapper struct {
	Delimiter string
}

func (*SliceMapper) Map

func (a *SliceMapper) Map(dest any, scannedValue any) (any, error)

Jump to

Keyboard shortcuts

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