mapper

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BsonM2Map added in v0.1.19

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

func BsonM2Struct added in v0.1.19

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

func IsKeyTimeValid added in v0.1.7

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

func IsKeyValid added in v0.1.7

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

func Json2Map

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

func Map2BsonM added in v0.1.19

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 added in v0.1.19

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