sample

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RxpRpl8 = easyhide.RegexpReplacement{
		Regexp:      regexp.MustCompile(`^v=(\w{4})\w{4}$`),
		Replacement: `v=${1}` + easyhide.HiddenMarker,
	}

	RxpRpls9 = []easyhide.RegexpReplacement{
		{
			Regexp:      regexp.MustCompile(`password=[^& ]+`),
			Replacement: `password=` + easyhide.HiddenMarker,
		},
		{
			Regexp:      regexp.MustCompile(`token=[^&]+([^&]{4})`),
			Replacement: `token=` + easyhide.HiddenMarker + `${1}`,
		},
	}
)

Functions

This section is empty.

Types

type T1

type T1 struct {
	A1  string              `json:"a1" easyhide:"show"`
	A2  string              `json:"a2" easyhide:"hide"`
	A3  string              `easyhide:"hide:HL"`
	A4  string              `easyhide:"hide:HR"`
	A5  string              `easyhide:"hide:NE"`
	A6  string              `easyhide:"hide:HL,NE"`
	A7  string              `easyhide:"hide:HR,NE"`
	A8  string              `easyhide:"hide:RE,NE:RxpRpl8"`
	A9  string              `easyhide:"hide:RES,NE:RxpRpls9"`
	A10 []string            `easyhide:"zero"`
	A11 []types.T2          `easyhide:"zero"`
	A12 map[string]string   `easyhide:"zero"`
	A13 map[types.T3]string `easyhide:"zero"`
	A14 map[string]types.T3 `easyhide:"zero"`
	A15 []xtypes.T4         `easyhide:"zero"`
}

func (T1) EasyHide

func (v T1) EasyHide() ([]byte, error)

func (T1) MarshalEasyJSON

func (v T1) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (T1) MarshalJSON

func (v T1) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*T1) UnmarshalEasyJSON

func (v *T1) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*T1) UnmarshalJSON

func (v *T1) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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