Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChecksumFile ¶
ChecksumFile calculate the checksum of a file This is used only internally to compare files
func CompareFiles ¶
CompareFiles compares two files returns True if files are the same
func GetExecutable ¶
GetExecutable get the path to the current executable
Types ¶
type Patcher ¶
type Patcher struct { SourcePath string DestinationPath string BackupPath string // Stores the backup of DestinationPath before replacement (must be on the same filesytem as DestinationPath) Mode os.FileMode // Mode used to create the new file at DestinationPath }
Patcher is used to replace file located at DestinationPath with the one located at SourcePath. DestinationPath is backed up at BackupPath.
Click to show internal directories.
Click to hide internal directories.