commit | db9229def8bb23cf254e5027eaf9b5914220e621 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Thu Jul 28 12:39:50 2011 -0400 |
committer | Russ Cox <rsc@golang.org> | Thu Jul 28 12:39:50 2011 -0400 |
tree | 8f4b7ad144d6bcb74f06ad9592e66c4bceac90c5 | |
parent | acb02ebc30bef25318505108d801d073508c0c6e [diff] [blame] |
cgo: add GoBytes, fix gmp example Fixes #1640. Fixes #2007. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4815063
diff --git a/misc/cgo/stdio/file.go b/misc/cgo/stdio/file.go index 021cbf9..ab1e884 100644 --- a/misc/cgo/stdio/file.go +++ b/misc/cgo/stdio/file.go
@@ -42,3 +42,4 @@ } var Greeting = C.GoString(C.greeting) +var Gbytes = C.GoBytes(unsafe.Pointer(C.greeting), C.int(len(Greeting)))