fx

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "theme"

Variables

View Source
var (
	OptionTheme  = fx.Provide(NewTheme)
	OptionLoader = fx.Provide(
		fx.Annotate(
			theme.NewRepositoryLoader,
			fx.As(new(theme.Loader)),
		),
	)
)

Functions

func NewTheme

func NewTheme(params ThemeParams) theme.Theme

Types

type ThemeParams

type ThemeParams struct {
	fx.In
	Loader   theme.Loader
	Funcs    []theme.FuncMap `group:"theme-func-map"`
	Handlers []theme.Handler `group:"theme-handler"`
}

Jump to

Keyboard shortcuts

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