once

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL