GoLang MongoCursorException::getHost

request it (144)
GoLang replacement for PHP's MongoCursorException::getHost [edit | history]

Do you know a GoLang replacement for PHP's MongoCursorException::getHost? Write it!

PHP MongoCursorException::getHost

PHP original manual for MongoCursorException::getHost [ show | php.net ]


(PECL mongo >= 1.0.0)

MongoCursorException::getHostThe hostname of the server that encountered the error


public string MongoCursorException::getHost ( void )

Returns the hostname of the server the query was sent too.


This function has no parameters.

Return Values

Returns the hostname, or NULL if the hostname is unknown.