mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-23 20:02:22 +00:00
Fix some error in code block example ch2-03
This commit is contained in:
parent
bb2c183683
commit
3f4277c784
@ -326,8 +326,10 @@ static char arr[10];
|
||||
static char *s = "Hello";
|
||||
*/
|
||||
import "C"
|
||||
import "fmt"
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"unsafe"
|
||||
)
|
||||
func main() {
|
||||
// 通过 reflect.SliceHeader 转换
|
||||
var arr0 []byte
|
||||
|
Loading…
x
Reference in New Issue
Block a user