25.C_struct_not_typedef

command
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 0

README

これは何?

cgoにてC側で構造体を定義して利用する場合

struct A { ... };

typedef struct A TA;

では、Go側での宣言で指定する型が異なるというサンプルです。

struct A { ... }; とした場合は

var a C.struct_(構造体名)

と宣言します。

typedef struct A TA; とした場合は

var ta C.TA

と宣言します。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL