Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReturnError ¶
type ReturnError struct {
// contains filtered or unexported fields
}
ReturnError is a wrapper around sync.Once that properly handles: func() error instead of just func()
func (*ReturnError) Do ¶
func (owe *ReturnError) Do(f func() error) error
Do provides the same functionality as sync.Once.Do(func()) but for func() error
Click to show internal directories.
Click to hide internal directories.