package
Version:
v0.0.0-...-b439704
Opens a new window with list of versions in this module.
Published: Dec 13, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sugar provides some syntactic-sugar-like utilities
Must panics if the error is non-nil. It is intended for use in variable
initializations and assertions.
func Must2(f interface{}, err error) interface{}
Same as Must but accept two parameters.
Example:
literal := Must2(syscall.UTF16PtrFromString("Literal")).(*uint16)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.