secretscan

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func HasKeyOfType(v, key any) bool

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.

Jump to

Keyboard shortcuts

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