grumble/pkg/replacefile/replacefile_stub.go
Mikkel Krautz 4d656053e4 Fix typo in replacefile_stub.go.
It's errOnlyWindows, not errOnlyOnWindows.
2016-03-27 18:29:46 +02:00

22 lines
586 B
Go

// 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 = errOnlyWindows
ErrUnableToRemoveReplaced error = errOnlyWindows
)
func ReplaceFile(replaced string, replacement string, backup string, flags Flag) error {
return errOnlyWindows
}