unstable

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Env = "UNSTABLE"

Env is the unstable environment variable.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled returns true if the unstable code path is enabled. Panics if Set has not been called yet.

func SafeEnabled

func SafeEnabled() (bool, error)

SafeEnabled returns true if the unstable code path is enabled. Returns error if Set has not been called yet.

func Set

func Set(ctx context.Context, enabled bool)

Set sets the unstable code path to either enabled or disabled.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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