mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-12 18:50:15 +08:00
12 lines
132 B
Go
12 lines
132 B
Go
package lang
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestCast(t *testing.T) {
|
|
fmt.Println(Cast[int](1))
|
|
fmt.Println(Cast[int](nil))
|
|
}
|