Created
November 12, 2015 03:01
-
-
Save ma6174/b628777b638c9a9234db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo/bson" | |
| ) | |
| func main() { | |
| fmt.Println(bson.ObjectId("000000000000")) | |
| fmt.Println(bson.ObjectIdHex("000000000000000000000000")) | |
| fmt.Println(bson.ObjectId("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")) | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output: