func (u *URL) GetBSON() (interface{}, error) {
	if u == nil {
		return nil, nil
	}
	return u.String(), nil
}
// GetBSON turns u into a bson.Getter so it can be saved directly
// on a MongoDB database with mgo.
//
// TODO (stickupkid): This should not be here, as this is purely for mongo
// data stores and that should be implemented at the site of data store, not
// dependant on the library.
GetBSON turns u into a bson.Getter so it can be saved directly
on a MongoDB database with mgo.


// GetBSON turns u into a bson . Getter so it can be saved directly // on a MongoDB database with mgo . // // TODO ( stickupkid ) : This should not be here as this is purely for mongo // data stores and that should be implemented at the site of data store not // dependant on the library .
func (u *URL) GetBSON() (interface{}, error) {
	if u == nil {
		return nil, nil
	}
	return u.String(), nil
}
func ( u * URL ) GetBSON ( ) ( interface { } , error ) { if u == nil { return nil , nil } return u . String ( ) , nil }
GetBSON turns u into a bson.Getter so it can be saved directly
on a MongoDB database with mgo.
GetBSON turns u into a bson . Getter so it can be saved directly on a MongoDB database with mgo .