utils

package
v0.0.0-...-e1f7cad Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(filePath string) (exists bool)

Exists function that determines if a given path exists.

func IsReadable

func IsReadable(path string) (readable bool)

IsReadable determines if a given directory or file can be read from.

func IsWritable

func IsWritable(path string) (writable bool)

IsWritable determines if a given directory or file can be written to.

func ParseClamAVTimeStamp

func ParseClamAVTimeStamp(timeString string) (time.Time, error)

ParseClamAVTimeStamp parses a ClamAV build time timstamp string and returns a time.Time instance representing the timestamp

func Shuffle

func Shuffle(slice interface{})

Shuffle psuedo-randomly shuffles a slice's elements.

Types

type AppVersionInfo

type AppVersionInfo struct {
	AppVersion    string
	GitCommitHash string
	UTCBuildTime  string
}

AppVersionInfo is a data structure that represents the version information we want to display to users.

Jump to

Keyboard shortcuts

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