data

package
v0.1.448 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Digger

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

Digger is an object that knows how to extract information from objects using paths.

func (*Digger) Dig

func (d *Digger) Dig(object interface{}, path string) interface{}

Dig extracts from the given object the field that corresponds to the given path. The path should be a sequence of field names separated by dots.

type DiggerBuilder

type DiggerBuilder struct {
}

DiggerBuilder contains the information and logic needed to build a digger.

func NewDigger

func NewDigger() *DiggerBuilder

NewDigger creates a builder that can then be used to configure and create diggers.

func (*DiggerBuilder) Build

func (b *DiggerBuilder) Build(ctx context.Context) (result *Digger, err error)

Build uses the configuration stored in the builder to create a new digger.

Jump to

Keyboard shortcuts

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