The highest tagged major version is
v6.
command
Version:
v2.0.9
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
study-hybrid-programming
介绍
Hybrid Programming 混合编程 golang c c++
定义
过程
-
调用函数
go ➡️cgo➡️c➡️c++
-
响应函数
c++➡️c➡️cgo➡️go
类型对应
C 语言类型 |
CGO 类型 |
Go 语言类型 |
char |
C.char |
byte |
singed char |
C.schar |
int8 |
unsigned char |
C.uchar |
uint8 |
short |
C.short |
int16 |
unsigned short |
C.ushort |
uint16 |
int |
C.int |
int32 |
unsigned int |
C.uint |
uint32 |
long |
C.long |
int32 |
unsigned long |
C.ulong |
uint32 |
long long int |
C.longlong |
int64 |
unsigned long long int |
C.ulonglong |
uint64 |
float |
C.float |
float32 |
double |
C.double |
float64 |
size_t |
C.size_t |
uint |
struct xx |
C.struct_xx |
type xx struct |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.