mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-10 12:02:01 -08:00
Fix all golint comment related problems in the pkg packages
This commit is contained in:
parent
65d43576a0
commit
e7589e706e
17 changed files with 47 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue