optionsutil

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(opts1, opts2 Options) bool

Equal compares two Options instances for equality.

func Value

func Value(opts Options, key string) any

Value returns the value associated with the options for key.

Types

type Options

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

Options stores internal options.

func WithValue

func WithValue(opts Options, key string, option any) Options

WithValue sets an option value with the associated key.

Jump to

Keyboard shortcuts

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