Fix all golint comment related problems in the pkg packages

This commit is contained in:
Ola Bini 2019-12-21 17:19:26 +00:00
parent 65d43576a0
commit e7589e706e
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F
17 changed files with 47 additions and 18 deletions

View file

@ -4,8 +4,10 @@
package replacefile
// Flag is a flag that allows you to ignore some errors
type Flag uint32
// The types of errors that can be ignored
const (
IgnoreMergeErrors Flag = 0x2
IgnoreACLErrors Flag = 0x4

View file

@ -10,6 +10,7 @@ import (
"errors"
)
// The different types of errors that can happen if we're not on windows
var (
errOnlyWindows = errors.New("replacefile: only implemented on Windows")
ErrUnableToMoveReplacement error = errOnlyWindows
@ -17,6 +18,7 @@ var (
ErrUnableToRemoveReplaced error = errOnlyWindows
)
// ReplaceFile tries to replace the file
func ReplaceFile(replaced string, replacement string, backup string, flags Flag) error {
return errOnlyWindows
}