Help us shape the future of Go! Take the 2026 Go Developer Survey

unknownkey

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package unknownkey picks the unknown key a strict decoder's refusal names. It is its own leaf, stdlib only, because three packages refuse unknown keys in the reference's manner and must pick the same one — internal/api's request bodies, internal/toolset's configs and internal/events' inbound events — and none of them may import another for it, while internal/domain holds the Anthropic-native types and nothing else.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Least

func Least[V any](obj map[string]V, allowed ...string) (unknown string, found bool)

Least reports the key of obj outside allowed that a refusal of unknown keys names, if there is one: the least in byte order, so a body with several names the same one on every request. The reference's choice agrees on the one recorded body with several (2026-09-03 batch2 `cred.create.oauth-te-400` named access_token among five).

Types

This section is empty.

Jump to

Keyboard shortcuts

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