jsonmask

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

Field holds structure's field metadata.

type Fields

type Fields []Field

Field holds field of a single structure.

type RawJsonMask

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

func New

func New() *RawJsonMask

func (*RawJsonMask) AddFunc

func (jm *RawJsonMask) AddFunc(name string, f func(string) string)

AddFunc adds masking function associated with name.

func (*RawJsonMask) Fields

func (jm *RawJsonMask) Fields(str interface{}, tag string) Fields

Returns fields

func (*RawJsonMask) Mask

func (jm *RawJsonMask) Mask(src []byte, fields Fields) ([]byte, error)

Jump to

Keyboard shortcuts

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