Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
bson
✓ github.com/asim/go-bson
Marshal a map to BSON format.
package main
import (
"fmt"
"github.com/asim/go-bson"
)
func main() {
data, err := bson.Marshal(map[string]interface{}{"key": "value"})
if err != nil {
panic(err)
}
fmt.Println(data)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20160318195205-84522947cabdlatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.