fields

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdatedFieldsToSlice

func UpdatedFieldsToSlice(fields UpdatedFields) ([]string, error)

Types

type UpdatedFields

type UpdatedFields interface {
	boltz.FieldChecker
	ToSlice() []string
	AddField(field string) UpdatedFields
	AddFields(fields ...string) UpdatedFields
	RemoveFields(fields ...string) UpdatedFields
	ConcatNestedNames() UpdatedFields
	FilterMaps(mapNames ...string) UpdatedFields
	MapField(old, new string) UpdatedFields
}

func SliceToUpdatedFields

func SliceToUpdatedFields(val []string) UpdatedFields

type UpdatedFieldsMap

type UpdatedFieldsMap map[string]struct{}

func (UpdatedFieldsMap) AddField

func (self UpdatedFieldsMap) AddField(key string) UpdatedFields

func (UpdatedFieldsMap) AddFields

func (self UpdatedFieldsMap) AddFields(fields ...string) UpdatedFields

func (UpdatedFieldsMap) ConcatNestedNames

func (self UpdatedFieldsMap) ConcatNestedNames() UpdatedFields

func (UpdatedFieldsMap) FilterMaps

func (self UpdatedFieldsMap) FilterMaps(mapNames ...string) UpdatedFields

func (UpdatedFieldsMap) IsUpdated

func (self UpdatedFieldsMap) IsUpdated(key string) bool

func (UpdatedFieldsMap) MapField added in v0.31.3

func (self UpdatedFieldsMap) MapField(old, new string) UpdatedFields

func (UpdatedFieldsMap) RemoveFields

func (self UpdatedFieldsMap) RemoveFields(fields ...string) UpdatedFields

func (UpdatedFieldsMap) ToSlice

func (self UpdatedFieldsMap) ToSlice() []string

Jump to

Keyboard shortcuts

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