masking

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaskNumber = 0
View Source
var MaskValue = "*****"

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func New

func New(keys ...string) *Processor

func (*Processor) Add

func (b *Processor) Add(key string, keys ...string) *Processor

func (*Processor) Form added in v0.1.0

func (b *Processor) Form(ctx context.Context, v any) (data []byte, err error)

Form converts a form-encoded string to URL-encoded bytes, masking sensitive values.

func (*Processor) Json added in v0.1.0

func (b *Processor) Json(ctx context.Context, v any) (data []byte, err error)

Json converts a JSON string or struct to JSON bytes.

Jump to

Keyboard shortcuts

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