func IsBSONObjectID(str string) bool {
	var id bson.ObjectId
	return id.UnmarshalText([]byte(str)) == nil
}
IsBSONObjectID returns true when the string is a valid BSON.ObjectId
package strfmt
import (
	"database/sql/driver"
	"errors"
	"fmt"
	"github.com/mailru/easyjson/jlexer"
	"github.com/mailru/easyjson/jwriter"
	"gopkg.in/mgo.v2/bson"
)
func init() {
	var id ObjectId
	Default.Add("bsonobjectid", &id, IsBSONObjectID)
}