reflection

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: AGPL-3.0 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
}

func GetField

func GetField(obj interface{}, path string) *Field

GetField try to get struct field from a given path

func (*Field) Bool

func (p *Field) Bool() (val, ok bool)

func (*Field) Exists

func (p *Field) Exists() bool

func (*Field) Int

func (p *Field) Int() (int64, bool)

func (*Field) IsValidObject

func (p *Field) IsValidObject() bool

func (*Field) Map

func (p *Field) Map() (map[string]interface{}, bool)

func (*Field) Slice

func (p *Field) Slice() ([]interface{}, bool)

func (*Field) String

func (p *Field) String() (string, bool)

Jump to

Keyboard shortcuts

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