options

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package options provides a shared mechanism for applying functional options across all SDK entry points. It enforces a single nil-option rule: nil entries in an option list are silently ignored.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any, O ~func(*T)](target *T, opts []O)

Apply folds opts into target in order, skipping nil entries. O is constrained to any named function type whose underlying type is func(*T), so callers write options.Apply(&cfg, opts) and both type parameters are inferred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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