native

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrSrcNotExist src file doesnt exist
	ErrSrcNotExist = errors.New("Source file does not exist")

	//ErrSrcNotRegularFile src file is not a regular file
	ErrSrcNotRegularFile = errors.New("Source file is not a regular file")

	//ErrDstNotRegularFile dst file is not a regular file
	ErrDstNotRegularFile = errors.New("Destination file is not a regular file")
)

Functions

func AppendSlash

func AppendSlash(path string) string

AppendSlash appends a slash to a path if one is needed

func FileCopy

func FileCopy(src string, dst string) error

FileCopy copies the contents of the src file to the dst file

func GetFilenameFromURIOrFullPath

func GetFilenameFromURIOrFullPath(path string) string

GetFilenameFromURIOrFullPath retrieves the filename from an URI

func GetFullExePath

func GetFullExePath() (string, error)

GetFullExePath returns the fullpath of the executable including the executable name itself

func GetFullPath

func GetFullPath() (string, error)

GetFullPath returns the fullpath of the executable without the executable name

func GetPathFileFullFilename

func GetPathFileFullFilename(path string) string

GetPathFileFullFilename returns the parent folder name

func GetRunningKernelVersion

func GetRunningKernelVersion() (string, error)

GetRunningKernelVersion returns the running kernel version

func GetUUID

func GetUUID() []byte

GetUUID generates a UUID

Types

This section is empty.

Directories

Path Synopsis
deb

Jump to

Keyboard shortcuts

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