meta

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName    = "app"
	AppVersion = "dev"
	Commit     = "unknown"
	BuildTime  = "unknown"
	BuildUser  = "unknown"
)

Functions

func Debug

func Debug(ctx context.Context) bool

func EnableDebug

func EnableDebug(ctx context.Context) context.Context

func Printer

func Printer(ctx context.Context) *message.Printer

func WithLocale

func WithLocale(ctx context.Context, tag language.Tag) context.Context

func WithPrinter

func WithPrinter(ctx context.Context, printer *message.Printer) context.Context

Types

type Lang

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

func Locale

func Locale(ctx context.Context) *Lang

func (Lang) Locale

func (l Lang) Locale() string

func (Lang) String

func (l Lang) String() string

Jump to

Keyboard shortcuts

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