godebug

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package godebug is a minimal shim for the GOROOT-private internal/godebug, providing just the Setting API that the vendored crypto/tls uses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

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

Setting is a GODEBUG setting.

func New

func New(name string) *Setting

New returns the Setting for the given GODEBUG key.

func (*Setting) IncNonDefault

func (s *Setting) IncNonDefault()

IncNonDefault is a no-op (metrics-only in the original).

func (*Setting) Value

func (s *Setting) Value() string

Value returns the value of the setting from the GODEBUG environment variable, or "" if unset. This is sufficient for crypto/tls's default-path checks.

Jump to

Keyboard shortcuts

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