Documentation
¶
Overview ¶
Package misc provides useful common functions that can be moved to separated projects later
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAddr = errors.New("invalid address")
ErrInvalidAddr returned when multiaddr is invalid
Functions ¶
func CloseWithLog ¶
CloseWithLog tries to close the resource and log on error it can be used as `defer misc.CloseWithLog(res)`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.