Skip to content

Commit

Permalink
bump major version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Oct 2, 2021
1 parent bc4180f commit 0450d4d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio_test
Expand All @@ -20,7 +21,7 @@ import (
"fmt"
"log"

"github.com/google/renameio"
"github.com/google/renameio/v2"
)

func ExampleTempFile_justone() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/google/renameio
module github.com/google/renameio/v2

go 1.13
3 changes: 2 additions & 1 deletion maybe/maybe_unix.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
//go:build !windows
// +build !windows

package maybe

import (
"os"

"github.com/google/renameio"
"github.com/google/renameio/v2"
)

// WriteFile mirrors ioutil.WriteFile. On Linux it uses renameio.WriteFile to
Expand Down
1 change: 1 addition & 0 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down
1 change: 1 addition & 0 deletions symlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down
1 change: 1 addition & 0 deletions tempfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down
1 change: 1 addition & 0 deletions tempfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down
1 change: 1 addition & 0 deletions writefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down
1 change: 1 addition & 0 deletions writefile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package renameio
Expand Down

0 comments on commit 0450d4d

Please sign in to comment.