mirror of
https://github.com/golang/go.git
synced 2025-05-28 02:41:30 +00:00
Add a space before build tag comments so it corresponds to the format documented at https://golang.org/pkg/go/build/. Change-Id: I8349d0343597e304b97fb5479847231ed8945b1a Reviewed-on: https://go-review.googlesource.com/c/go/+/193237 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
29 lines
521 B
Go
29 lines
521 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !windows
|
|
|
|
package robustio
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
)
|
|
|
|
func rename(oldpath, newpath string) error {
|
|
return os.Rename(oldpath, newpath)
|
|
}
|
|
|
|
func readFile(filename string) ([]byte, error) {
|
|
return ioutil.ReadFile(filename)
|
|
}
|
|
|
|
func removeAll(path string) error {
|
|
return os.RemoveAll(path)
|
|
}
|
|
|
|
func isEphemeralError(err error) bool {
|
|
return false
|
|
}
|