utils

package
v3.0.0-alpha.0...-b49f957 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSON = jsoniter.Config{
	EscapeHTML:             true,
	SortMapKeys:            false,
	ValidateJsonRawMessage: false,
}.Froze()

Functions

func HasFieldAndSliceValue

func HasFieldAndSliceValue(
	slice interface{},
	fieldName, sliceFieldName string,
	fieldValue, sliceFieldValue interface{},
) (bool, bool, error)

func HasFieldValue

func HasFieldValue(slice interface{}, fieldName string, value interface{}) (bool, error)

func HasValue

func HasValue(slice interface{}, value interface{}) (bool, error)

func MustHasValue

func MustHasValue(slice interface{}, value interface{}) (interface{}, error)

Types

This section is empty.

Directories

Path Synopsis
Package bsonenc support encoding and decoding by bson.
Package bsonenc support encoding and decoding by bson.

Jump to

Keyboard shortcuts

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