stdfx

package
v0.0.111 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package stdfx provides utilities for using Uber's fx.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZapEnvCfgModule

func ZapEnvCfgModule[CFG any, P, R any](name string, newf func(P) (R, error), opts ...fx.Option) fx.Option

ZapEnvCfgModule creates a fx module that already provides a configuration struct parsed from the prefixed environment vars and a logger named after the module. P is assumed to be a fx "Params" struct embedding a fx.In, see: https://uber-go.github.io/fx/parameter-objects.html and R an results object as described here: https://uber-go.github.io/fx/result-objects.html.

Types

This section is empty.

Jump to

Keyboard shortcuts

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