/*/中间是C代码,之后接 import “C” 如果存在空行 就会报错.could not determine kind of name for C.

    OK:

    1. package pkgname
    2. /*
    3. C Code
    4. */
    5. import "C"

    False:

    1. package pkgname
    2. /*
    3. C Code
    4. */
    5. import "C"

    cgo: could not determine kind of name for C.* - 图1