- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for PASSED (0.16 sec)
-
src/cmd/cgo/internal/test/callback.go
return } // Test that C can pass in a Go string from a string constant. func testCallGoWithString(t *testing.T) { C.callGoWithString() want := "string passed from C to Go" if stringFromGo != want { t.Errorf("string passed through C is %s, want %s", stringFromGo, want) } } var stringFromGo string //export goWithString func goWithString(s string) { stringFromGo = s }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0)