refutil

package
v0.0.0-...-3f675b9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BsonTagName = "bson"

Variables

This section is empty.

Functions

func DefaultBsonFieldName

func DefaultBsonFieldName(name string) string

Returns name of field, once it's rendered to BSON, when no such name is set by hand.

func InterfaceIsEmpty

func InterfaceIsEmpty(empty interface{}) bool

func ValueIsEmpty

func ValueIsEmpty(target reflect.Value) bool

func ValueToNumber

func ValueToNumber(v reflect.Value) (res interface{})

Types

type BSONFieldMeta

type BSONFieldMeta struct {
	BSONFieldName string
	Skip          bool
}

func (*BSONFieldMeta) ParseTag

func (mtm *BSONFieldMeta) ParseTag(bsonTags string) (err error)

Jump to

Keyboard shortcuts

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