command
Version:
v0.2.5
Opens a new window with list of versions in this module.
Published: Dec 12, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
C.int など
import "C"
をすることによって、C言語側の型が使えるようになる。
C言語側にて定義されている構造体も C.構造体 でアクセス出来る。
特例として、Go側にてC言語側の構造体を変数宣言した場合
自動的にゼロクリアされた状態となる。(memset(&stx, 0, sizeof(stx))と同じ状態)
これは、Goの変数初期化のルールが適用されるため(ゼロ値)。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.