Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it is ran through C preprocessor. You can define for CFLAGS, CPPFLAGS or LDFLAGS in the form of special comment:

    // #cgo CFLAGS: -DYOUR_DEFINE
    // #cgo LDFLAGS: -lyourlib
    // #include <header.h>
    import "C"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: