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 ¶ added in v1.5.0
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.
func (*Patcher) Apply ¶ added in v1.5.0
Apply replaces the file located at DestinationPath with the one located at BackupPath and then new file is created at DestinationPath with the content of SourcePath
Click to show internal directories.
Click to hide internal directories.