Skip to content

Commit 902e99b

Browse files
committed
feat: publish the v2
1 parent 885b019 commit 902e99b

File tree

8 files changed

+9
-14
lines changed

8 files changed

+9
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 🪄 go-safecast: safe numbers conversion
22

33
[![Go Report Card](https://goreportcard.com/badge/github.com/ccoveille/go-safecast)](https://goreportcard.com/report/github.com/ccoveille/go-safecast)
4-
[![GoDoc](https://godoc.org/github.com/ccoVeille/go-safecast?status.svg)](https://godoc.org/github.com/ccoVeille/go-safecast)
4+
[![GoDoc](https://godoc.org/github.com/ccoVeille/go-safecast?status.svg)](https://godoc.org/github.com/ccoVeille/go-safecast/v2)
55
[![codecov](https://codecov.io/gh/ccoVeille/go-safecast/graph/badge.svg?token=VW0VO503U6)](https://codecov.io/gh/ccoVeille/go-safecast)
66
[![Go Imports](https://img.shields.io/github/search?query=%22%5C%22github.com%2Fccoveille%2Fgo-safecast%5C%22%22%20language%3Ago%20%20-is%3Afork%20-is%3Aarchived%20&label=Go%20imports)](https://github.com/search?q=%22%5C%22github.com%2Fccoveille%2Fgo-safecast%5C%22%22+language%3Ago++-is%3Afork+-is%3Aarchived+&type=code)
77
![GitHub Repo stars](https://img.shields.io/github/stars/ccoveille/go-safecast)
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222
"math"
2323

24-
"github.com/ccoveille/go-safecast"
24+
"github.com/ccoveille/go-safecast/v2"
2525
)
2626

2727
func main() {

asserters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/ccoveille/go-safecast"
9+
"github.com/ccoveille/go-safecast/v2"
1010
)
1111

1212
// mockTestingT is a mock implementation of the safecast.TestingT interface

conversion_64bit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"math"
1414
"testing"
1515

16-
"github.com/ccoveille/go-safecast"
16+
"github.com/ccoveille/go-safecast/v2"
1717
)
1818

1919
// TestConvert_64bit completes the [TestConvert] tests in conversion_test.go

conversion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"math"
1414
"testing"
1515

16-
"github.com/ccoveille/go-safecast"
16+
"github.com/ccoveille/go-safecast/v2"
1717
)
1818

1919
type MapTest[TypeInput safecast.Number, TypeOutput safecast.Number] struct {

examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package safecast_test
33
import (
44
"fmt"
55

6-
"github.com/ccoveille/go-safecast"
6+
"github.com/ccoveille/go-safecast/v2"
77
)
88

99
func ExampleConvert() {

go.mod

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// Deprecated: use github.com/ccoveille/go-safecast/v2 instead.
2-
module github.com/ccoveille/go-safecast
1+
module github.com/ccoveille/go-safecast/v2
32

43
go 1.21
5-
6-
retract (
7-
v1.0.0 // Published accidentally.
8-
)

parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"testing"
77

8-
"github.com/ccoveille/go-safecast"
8+
"github.com/ccoveille/go-safecast/v2"
99
)
1010

1111
func ExampleParse() {

readme_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package safecast_test
33
import (
44
"fmt"
55

6-
"github.com/ccoveille/go-safecast"
6+
"github.com/ccoveille/go-safecast/v2"
77
)
88

99
func Example() {

0 commit comments

Comments
 (0)