fields

package
v0.0.0-...-0593e73 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(before, after Fields) (changed bool, added, updated, deleted []string)

Types

type Fields

type Fields map[string]Value

type Value

type Value interface {
	Equals(Value) bool

	// For a single value, returns its String() method; for multi-value returns
	// the list of stringified values. For a composite value, returns nil.
	Strings() []string

	// For a composite value returns its fields, otehrwise returns nil.
	Fields() Fields
}

func NewMultiValue

func NewMultiValue(vv ...Value) Value

func NewStringValue

func NewStringValue(s string) Value

func NewTimeValue

func NewTimeValue(t time.Time) Value

Jump to

Keyboard shortcuts

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