options

package
v1.51.5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package options provides shared utilities for option validation across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSingleInputSource

func ValidateSingleInputSource(noSourceMsg, multiSourceMsg string, sources ...bool) error

ValidateSingleInputSource ensures exactly one input source is specified. sources is a variadic list of booleans indicating whether each source is set. noSourceMsg is the error message when no source is specified. multiSourceMsg is the error message when multiple sources are specified. Returns an error if zero or more than one input source is specified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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