util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(path string, args []string) error

func ExpandPath

func ExpandPath(path string) (string, error)

func IsDirExist

func IsDirExist(path string) (bool, error)

func IsNotDirectoryErr

func IsNotDirectoryErr(err error) bool

func IsRegularFileExist

func IsRegularFileExist(path string) (bool, error)

func MurmurHash added in v0.1.1

func MurmurHash(args ...string) string

func Sha512Checksum

func Sha512Checksum(data []byte) string

Types

type DelayFile added in v0.1.1

type DelayFile struct {
	Locker   lockgate.Locker
	FilePath string
	Delay    time.Duration
}

func NewDelayFile added in v0.1.1

func NewDelayFile(locker lockgate.Locker, filePath string, delay time.Duration) DelayFile

func (DelayFile) IsDelayPassed added in v0.1.1

func (u DelayFile) IsDelayPassed() (passed bool, err error)

func (DelayFile) UpdateTimestamp added in v0.1.1

func (u DelayFile) UpdateTimestamp() error

Jump to

Keyboard shortcuts

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