- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for myprint1 (0.11 sec)
-
test/typeparam/gencrawler.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 10 19:51:05 UTC 2022 - 412 bytes - Viewed (0) -
src/runtime/cgo/handle.go
// // extern void MyGoPrint(uintptr_t handle); // void myprint(uintptr_t handle); // */ // import "C" // import "runtime/cgo" // // //export MyGoPrint // func MyGoPrint(handle C.uintptr_t) { // h := cgo.Handle(handle) // val := h.Value().(string) // println(val) // h.Delete() // } // // func main() { // val := "hello Go" // C.myprint(C.uintptr_t(cgo.NewHandle(val))) // // Output: hello Go // }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:59:11 UTC 2023 - 3.6K bytes - Viewed (0) -
src/internal/types/testdata/examples/constraints.go
// operation. type myInt1 int type myInt2 int func _[T interface{ myInt1|myInt2; ~int }]() T { return T(0) } func _[T interface{ ~int; myInt1|myInt2 }]() T { return T(0) } // Here the intersections are empty - there's no type that's in the type set of T. func _[T interface{ myInt1|myInt2; int }]() T { return T(0 /* ERROR "cannot convert" */ ) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 2.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go
// // To enable printf checking on a function that is not found by this // analyzer's heuristics (for example, because control is obscured by // dynamic method calls), insert a bogus call: // // func MyPrintf(format string, args ...any) { // if false { // _ = fmt.Sprintf(format, args...) // enable printf checking // } // ... // } // // # Specifying printf wrappers by flag //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 3.2K bytes - Viewed (0)