encoder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyToMap

func ApplyToMap(encoders map[string][]string, values map[string]string) map[string]string

ApplyToMap returns a new map with each value run through its encoder chain. encoders maps keyword -> list of encoder names (e.g. "FUZZ" -> ["urlencode"]). Keywords not in encoders are copied as-is.

func Chain

func Chain(value string, names []string) (string, error)

Chain applies a list of encoder names to value in order. Unknown encoder names are skipped. Returns value unchanged if no encoders or all unknown. All built-in encoders are infallible; the returned error is reserved for future use (e.g. strict mode).

func Registered

func Registered() []string

Registered returns the list of registered encoder names (e.g. for help).

Types

This section is empty.

Jump to

Keyboard shortcuts

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