utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffFields

func DiffFields(src any, dest any) ([]string, error)

func GetTag

func GetTag(t reflect.Type, tag string) string

func GetValueAndField

func GetValueAndField(data interface{}, path string) (*reflect.Value, *reflect.StructField, error)

Types

type DiffReporter

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

func (DiffReporter) Fields

func (r DiffReporter) Fields() []string

func (*DiffReporter) PopStep

func (r *DiffReporter) PopStep()

func (*DiffReporter) PushStep

func (r *DiffReporter) PushStep(ps cmp.PathStep)

func (*DiffReporter) Report

func (r *DiffReporter) Report(rs cmp.Result)

func (*DiffReporter) String

func (r *DiffReporter) String() string

Jump to

Keyboard shortcuts

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