mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
grumble, pkg/*: go fmt.
This commit is contained in:
parent
d77f8843a7
commit
dd76f22eb7
14 changed files with 62 additions and 61 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
// Package replacefile implements access to the ReplaceFile Win32 API.
|
||||
package replacefile
|
||||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
// Package replacefile implements access to the ReplaceFile Win32 API.
|
||||
package replacefile
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
package replacefile
|
||||
|
||||
type Flag uint32
|
||||
|
||||
const (
|
||||
IgnoreMergeErrors Flag = 0x2
|
||||
IgnoreACLErrors Flag = 0x4
|
||||
)
|
||||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
package replacefile
|
||||
|
||||
type Flag uint32
|
||||
|
||||
const (
|
||||
IgnoreMergeErrors Flag = 0x2
|
||||
IgnoreACLErrors Flag = 0x4
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
// +build !windows
|
||||
|
||||
package replacefile
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
errOnlyWindows = errors.New("replacefile: only implemented on Windows")
|
||||
ErrUnableToMoveReplacement error = errOnlyWindows
|
||||
ErrUnableToMoveReplacement2 error = errOnlyOnWindows
|
||||
ErrUnableToRemoveReplaced error = errOnlyWindows
|
||||
)
|
||||
|
||||
func ReplaceFile(replaced string, replacement string, backup string, flags Flag) error {
|
||||
return errOnlyWindows
|
||||
}
|
||||
// Copyright (c) 2012 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
// +build !windows
|
||||
|
||||
package replacefile
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
errOnlyWindows = errors.New("replacefile: only implemented on Windows")
|
||||
ErrUnableToMoveReplacement error = errOnlyWindows
|
||||
ErrUnableToMoveReplacement2 error = errOnlyOnWindows
|
||||
ErrUnableToRemoveReplaced error = errOnlyWindows
|
||||
)
|
||||
|
||||
func ReplaceFile(replaced string, replacement string, backup string, flags Flag) error {
|
||||
return errOnlyWindows
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue