jsonReplacer

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IReplacer

type IReplacer interface {
	Replacing([]byte) ([]byte, error)
}

func NewReplacer

func NewReplacer(replaceFunc func(interface{}) interface{}, options ...Option) IReplacer

type Option

type Option interface {
	Apply(*replacer)
}

func WithKeyword

func WithKeyword(k string) Option

func WithKeywords

func WithKeywords(k []string) Option

func WithKind

func WithKind(k reflect.Kind) Option

func WithMaxDepth

func WithMaxDepth(n int) Option

type OptionFunc

type OptionFunc func(*replacer)

func (OptionFunc) Apply

func (f OptionFunc) Apply(r *replacer)

Jump to

Keyboard shortcuts

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