GoLang MongoId::__set_state

request it (97)
GoLang replacement for PHP's MongoId::__set_state [edit | history]

Do you know a GoLang replacement for PHP's MongoId::__set_state? Write it!

PHP MongoId::__set_state

PHP original manual for MongoId::__set_state [ show | php.net ]


(PECL mongo >= 1.0.8)

MongoId::__set_stateCreate a dummy MongoId


public static MongoId MongoId::__set_state ( array $props )

This function is only used by PHP internally, it shouldn't need to ever be called by the user.

It is identical to the function:


public static function __set_state($props) {
    return new 




Theoretically, an array of properties used to create the new id. However, as MongoId instances have no properties, this is not used.

Return Values

A new id with the value "000000000000000000000000".