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{}{})) }