util

package
v2.5.7 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarshalJSON   = json.Marshal
	UnmarshalJSON = json.Unmarshal
)

Should only be overwritten during process init()'ialization.

View Source
var (
	// Bolt keys
	BoltSnapshotsBucket           = []byte{'s'}
	BoltPathKey                   = []byte{'p'}
	BoltDeletedKey                = []byte{'d'}
	BoltInternalKey               = []byte{'i'}
	BoltMetaDataKey               = []byte{'m'}
	BoltMetaDataSegmentTypeKey    = []byte("type")
	BoltMetaDataSegmentVersionKey = []byte("version")
	BoltMetaDataTimeStamp         = []byte("timeStamp")
	BoltStatsKey                  = []byte("stats")
	BoltUpdatedFieldsKey          = []byte("fields")
	TotBytesWrittenKey            = []byte("TotBytesWritten")

	MappingInternalKey = []byte("_mapping")
)

Functions

func ExtractNumericValFloat32 added in v2.4.0

func ExtractNumericValFloat32(v interface{}) (float32, bool)

extract numeric value (if possible) and returns a float32

func ExtractNumericValFloat64 added in v2.4.0

func ExtractNumericValFloat64(v interface{}) (float64, bool)

extract numeric value (if possible) and returns a float64

func IsValidFloat32 added in v2.4.1

func IsValidFloat32(val float64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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