fields

package
v0.22.48 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

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
}

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) 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