The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
author : ysoftman
encoding : utf-8
title : cgo 패키지 테스트
참고
https://golang.org/cmd/cgo/https://github.com/golang/go/wiki/cgo
package 와 import "C" 사이에 주석으로 C 코드를 작성해 놓는다.
C 코드의 끝과 import "C" 사이에 공백줄이 있으면 안된다.
import "C" 부분은 다른 패키지와 함께 import ( "C" "fmt") 과 같이 사용하면 안된다.
mac 환경에서 go 1.7.4 버전에서 signal: killed 에러가 발생함
go 1.8.2 버전으로 업그레이 후 해결
#cgo 지시자를 이용해서 CFLAGS, CPPFLAGS, CXXFLAGS, FFLAGS LDFLAGS 옵셙 값을 설정 할 수 있다.