Skip to content

Commit

Permalink
only generic (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen3feng committed Aug 14, 2022
1 parent 81f631f commit 6dffb17
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 2,826 deletions.
1,202 changes: 8 additions & 1,194 deletions README.md

Large diffs are not rendered by default.

1,201 changes: 6 additions & 1,195 deletions README_zh.md

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions cafecast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import (
"testing"
)

func TestXxxToXxx(t *testing.T) {
n, ok := safecast.Int16ToUint(11)
if !ok || n != 11 {
t.Fail()
}
}

func TestTo(t *testing.T) {
_, ok := safecast.To[int8](256)
if ok {
Expand Down

0 comments on commit 6dffb17

Please sign in to comment.