erronce

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrOnce

type ErrOnce struct {
	// contains filtered or unexported fields
}

ErrOnce is like sync.Once, but the Do() accepts a func() error and can therefore also return an error.

func (*ErrOnce) Do

func (o *ErrOnce) Do(fn func() error) error

Jump to

Keyboard shortcuts

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