Q:

how to write comments in cgo arguments

I have the following cgo arguments and I want to annotate lines with things like // this checks for 32bit etc. how can I do that without getting? invalid flag in #cgo CFLAGS: //
// #cgo CFLAGS: -I./depend/ -I./depend/src/
// #cgo 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc s390 sparc CFLAGS: -D32bit=1 // 32 bit
// #cgo amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 CFLAGS: -D64bit=1 // 64 bit
// #cgo arm64be armbe mips mips64 mips64p32 ppc s390 s390x sparc sparc64 CFLAGS: -DBIGENDIAN=1 // big endian
// #include "example.c"
import "C"

A:

Try that:
// // comment in the comment
// #cgo CFLAGS: -I./depend/ -I./depend/src/
// // 32 bit
// #cgo 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc s390 sparc CFLAGS: -D32bit=1
// // 64 bit
// #cgo amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 CFLAGS: -D64bit=1
// // big endian
// #cgo arm64be armbe mips mips64 mips64p32 ppc s390 s390x sparc sparc64 CFLAGS: -DBIGENDIAN=1
// #include "example.c"
import "C"

