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

stdfx

package
v0.0.242 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 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 NamedNoProvideZapEnvCfgModule added in v0.0.128

func NamedNoProvideZapEnvCfgModule[CFG any](moduleName, instanceName string, opts ...fx.Option) fx.Option

NamedNoProvideZapEnvCfgModule is like ZapEnvCfgModule but does not provide anything by default.

func NoProvideZapEnvCfgModule added in v0.0.128

func NoProvideZapEnvCfgModule[CFG any](moduleName string, opts ...fx.Option) fx.Option

NoProvideZapEnvCfgModule is like ZapEnvCfgModule but does not provide anything by default.

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