mapper

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BsonM2Map

func BsonM2Map(m bson.M) map[string]interface{}

func BsonM2Struct

func BsonM2Struct(m bson.M, v interface{}) error

func IsKeyTimeValid

func IsKeyTimeValid(m bson.M, key string) bool

func IsKeyValid

func IsKeyValid(m bson.M, key string) bool

func Json2Map

func Json2Map(s string) (m map[string]interface{}, err error)

func Map2BsonM

func Map2BsonM(m map[string]interface{}) bson.M

func Map2Json

func Map2Json(m interface{}) (string, error)

func Map2Struct

func Map2Struct(m interface{}, v interface{}) error

func Struct2BsonM

func Struct2BsonM(v interface{}) (bson.M, error)

func Struct2Map

func Struct2Map(v interface{}) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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