once

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes added in v0.1.9

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

func (*Bytes) Do added in v0.1.9

func (b *Bytes) Do(fn func() ([]byte, error)) ([]byte, error)

type Closer added in v0.2.4

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

func (*Closer) Add added in v0.2.6

func (c *Closer) Add(fn func() error)

func (*Closer) Close added in v0.2.4

func (c *Closer) Close() (err error)

type DirEntries added in v0.2.6

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

DirEntries ensures we only read the directories once

func (*DirEntries) Do added in v0.2.6

func (d *DirEntries) Do(fn func() ([]fs.DirEntry, error)) ([]fs.DirEntry, error)

type Error

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

func (*Error) Do

func (e *Error) Do(fn func() error) (err error)

type FileInfo added in v0.2.6

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

FileInfo ensures we only read fileinfo once

func (*FileInfo) Do added in v0.2.6

func (d *FileInfo) Do(fn func() (fs.FileInfo, error)) (fs.FileInfo, error)

type String

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

func (*String) Do

func (s *String) Do(fn func() (string, error)) (string, error)

Jump to

Keyboard shortcuts

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