You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
410 B
18 lines
410 B
package str
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestStr_IsString(t *testing.T) {
|
|
fmt.Println(StrTool.IsString("hello world!"))
|
|
fmt.Println(StrTool.IsString(123))
|
|
fmt.Println(StrTool.IsString(true))
|
|
fmt.Println(StrTool.IsString(nil))
|
|
fmt.Println(StrTool.IsString([]string{"hello", "world"}))
|
|
fmt.Println(StrTool.IsString(map[string]string{"hello": "world"}))
|
|
fmt.Println(StrTool.IsString(struct{}{}))
|
|
|
|
}
|