command
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Mar 18, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
C.string
import "C" をすることによって、C言語側の型が使えるようになる。
C言語側の文字列をcgoにて利用する場合は、C.CString を利用する。
C.CString は、内部で malloc() によりヒープメモリを確保しているため
利用後に必ず C.free() にてメモリを開放する必要がある。
C.CString は、C言語の (char *) を表す。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.