flag

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Debug            bool              // Enable debug logging.
	LogFormat        logging.LogFormat // Log output format.
	ListenAddr       string            // Address to listen on.
	RoutePrefix      string            // Route prefix for mounting.
	ConfigPath       string            // Path to YAML config file.
	StrictEnv        bool              // Enforce env placeholders in config.
	SiteRoot         string            // Site root URL.
	OverriddenValues map[string]any    // Overridden values from environment.
}

Options holds the application configuration.

func ParseFlags

func ParseFlags(args []string, version string) (Options, error)

ParseFlags parses flags and environment variables into Options.

Jump to

Keyboard shortcuts

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