clconfig

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package clconfig provides re-usable configuration utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvConfigurer

func EnvConfigurer[T any](prefix ...string) func(o env.Options) (T, error)

EnvConfigurer returns a function that parses environment variables into a configuration struct T. If the prefix is provided it will set a prefix for the underlying environment parser.

func Provide

func Provide[T any](prefix ...string) fx.Option

Provide configuration T as an fx dependency that parses the environment with an optional prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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