stdbuildinfofx

package
v0.0.125 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stdbuildinfofx provides information determined at built time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide(version string) fx.Option

Provide the package's components.

func TestProvide

func TestProvide() fx.Option

TestProvide provides di for testing where no specific version is required to be provided.

Types

type Config

type Config struct{}

Config configures the package's components.

type Info

type Info struct {
	// contains filtered or unexported fields
}

Info holds the main build info.

func (Info) Version

func (in Info) Version() string

Version as determined at build time.

type Params

type Params struct {
	fx.In
	Version string `name:"version"`
}

Params determine main inputs for creating components.

type Result

type Result struct {
	fx.Out
	Info
}

Result determine main output from creating components.

func New

func New(p Params) (Result, error)

New init the components.

Jump to

Keyboard shortcuts

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