Goã® cgo ã¨ããæ©è½ã使ãã¨ãGoããCã®ä¸çã®ã³ã¼ããå¼ãã ããå¼ã°ããããããã¨ãã§ããã Perlã§è¨ãã¨ããã®XSã¨ãããã¤ã ã ãã®cgoã使ã£ãGoããã°ã©ã ã¯ãæã¯Makefileãå©ç¨ãã¦ãã«ããã¦ããããã ãã 1.0ãã㯠go get ã go build ã¨è¨ã£ããgo toolãcgoã«å¯¾å¿ããã®ã§ãããããã¨ãå¿ è¦ãªããªã£ã¦ããã cgoã®åºæ¬çãªä½¿ãæ¹ ã¾ã㯠import "C" ã¨ãã¦ãCã¨ããçä¼¼ããã±ã¼ã¸ãimportããã ãã®ããã±ã¼ã¸ã使ãã¨ã C.fprintf(...) ã¨ãããããªæãã§Cã®ä¸çã«ã¢ã¯ã»ã¹ã§ããããã«ãªãã ã¾ãããã®importæã®ç´åã®ã³ã¡ã³ãã¯Cã®ã³ã¼ãã¨ãã¦è§£éãããã ãªã®ã§ã package main /* #include <stdio.h> void hello() { fprintf(stderr,
{{#tags}}- {{label}}
{{/tags}}