Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do panics if err is not nil, otherwise returns t. It is useful in wrapping a two-value function call where you know statically that the call will succeed.
Example:
url := must.Do(url.Parse("http://example.com"))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.