utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OsFs = afero.Afero{Fs: afero.NewOsFs()}

OsFs is an instance of afero.NewOsFs

Functions

func BoolPtr added in v0.1.0

func BoolPtr(b bool) *bool

func FileExists

func FileExists(filename string) (bool, error)

FileExists afero for some reason does not have such a function, so...

func Int64Ptr added in v0.1.0

func Int64Ptr(i int64) *int64

func RandomHex

func RandomHex(n int) string

Types

type StopChan added in v0.1.0

type StopChan struct {
	Chan chan struct{}
	sync.Once
}

func NewStopChan added in v0.1.0

func NewStopChan() *StopChan

func (*StopChan) CloseOnce added in v0.1.0

func (s *StopChan) CloseOnce()

Jump to

Keyboard shortcuts

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