fileio

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChecksumFile

func ChecksumFile(src string) (string, error)

ChecksumFile calculate the checksum of a file This is used only internally to compare files

func CompareFiles

func CompareFiles(fileA, fileB string) (bool, error)

CompareFiles compares two files returns True if files are the same

func CopyFile

func CopyFile(src string, dest string) error

CopyFile copies file contents from file source to file destination

func FileExists

func FileExists(src string) bool

FileExists checks if the file exists

func GetExecutable

func GetExecutable() (string, error)

GetExecutable get the path to the current executable

func ReplaceExecutableWith

func ReplaceExecutableWith(src string) error

ReplaceExecutableWith replaces the current executable with the one located at src

func TempDir

func TempDir() (string, error)

TempDir creates a new temporary directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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