stdfx

package
v0.0.254 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 4 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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