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

Documentation links (incomplete):

  // +linux
Dunno -- help, anyone?

  //go:embed
https://golang.org/pkg/embed/

  // #include <stdlib.h> import "C"
https://golang.org/cmd/cgo/

  // go:generate
https://golang.org/cmd/go/#hdr-Generate_Go_files_by_processi...


> Dunno -- help, anyone?

https://golang.org/cmd/go/#hdr-Build_constraints

EDIT: Those are in the process of being replaced with //go:build directives. See https://github.com/golang/go/issues/41184.




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

Search: