mirror of
https://github.com/golang/go
synced 2024-11-21 16:14:42 -07:00
cgo: fix typo in the documentation
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5448115
This commit is contained in:
parent
e0c006a9b0
commit
972b98c135
@ -93,7 +93,7 @@ Go functions can be exported for use by C code in the following way:
|
||||
func MyFunction(arg1, arg2 int, arg3 string) int64 {...}
|
||||
|
||||
//export MyFunction2
|
||||
func MyFunction2(arg1, arg2 int, arg3 string) (int64, C.char*) {...}
|
||||
func MyFunction2(arg1, arg2 int, arg3 string) (int64, *C.char) {...}
|
||||
|
||||
They will be available in the C code as:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user