Golang C绑定类型设计
vsGolang C绑定类型设计,c,go,binding,shared-libraries,wrapper,C,Go,Binding,Shared Libraries,Wrapper,vs 为C库编写Golang绑定有哪些(dis)优势?第二个示例清楚地显示了无法从其他包访问的数据结构 对于第一个,这是不可能的 type Foobar C.struct_foobar type Foobar struct { foobar C.struct_foobar }
为C库编写Golang绑定有哪些(dis)优势?第二个示例清楚地显示了无法从其他包访问的数据结构 对于第一个,这是不可能的
type Foobar C.struct_foobar
type Foobar struct {
foobar C.struct_foobar
}