payload

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparator

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

func NewComparator

func NewComparator() *Comparator

func NewDefaultComparator

func NewDefaultComparator() *Comparator

func (Comparator) AddComparer

func (c Comparator) AddComparer(contentType string, comparer Comparer)

func (Comparator) Compare

func (c Comparator) Compare(contentType, s1, s2 string) (comparable bool, equals bool)

type Comparer

type Comparer interface {
	Compare(s1, s2 string) bool
}

type JSONComparator

type JSONComparator struct {
}

func (*JSONComparator) Compare

func (jc *JSONComparator) Compare(s1, s2 string) bool

type XMLComparator

type XMLComparator struct {
}

func (*XMLComparator) Compare

func (jc *XMLComparator) Compare(s1, s2 string) bool

Jump to

Keyboard shortcuts

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