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

fuzzy

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableXssProtection bool
	BlueMondayPolicy    = bluemonday.StrictPolicy()
)

Functions

func Decode

func Decode(bodyBytes []byte, req any) ([]byte, error)

func DecodeRequest

func DecodeRequest(r *http.Request, req any) error

func RegisterFuzzyDecoders

func RegisterFuzzyDecoders()

RegisterFuzzyDecoders decode input from PHP with tolerance. It will handle string/number auto conversation, and treat empty [] as empty struct.

func RegisterPointerFuzzyDecoders

func RegisterPointerFuzzyDecoders()

Types

This section is empty.

Jump to

Keyboard shortcuts

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