Documentation
¶
Overview ¶
Package secretscan finds a secret that encoding/json cannot redact: the key of a map (SI-04). encoding/json writes a map key of a string type as its text and calls no method of the key. The walk reads a value by reflection, as encoding/json does. It runs for a value that goes to an agent or a browser as JSON, and never on the render path of a template, so package gx keeps its rule of no reflection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasKeyOfType ¶
HasKeyOfType reports whether v holds a map whose key type is the type of key. It walks the value and not only its type: a map behind an interface, such as a value of a map[string]any, is found too.
Types ¶
This section is empty.