minifier

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsApiKeyMinifierEnabled

func IsApiKeyMinifierEnabled() bool

IsApiKeyMinifierEnabled returns whether the API key minifier is enabled.

func MinifyApiKeys

func MinifyApiKeys(input interface{}) (interface{}, error)

MinifyApiKeys recursively minifies the keys of a given input based on the predefined key mapping.

Parameters: - input: An interface{} that must be either a struct, a map[string]interface{}, or a nested combination.

Returns: - map[string]interface{}: A map with minified keys at all levels. - error: An error if the input is not a valid structure or contains unsupported types.

func SetupApiKeyMinifierConfig

func SetupApiKeyMinifierConfig(isEnabled bool, keymap *sync.Map)

SetupApiKeyMinifierConfig configures the API key minifier.

Parameters: - isEnabled: A boolean indicating whether the API key minifier should be enabled. - keymap: A pointer to a sync.Map containing the original keys and their minified counterparts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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