package main
func main() {
...
}
컴파일을 원하지 않을 경우, main 패키지 또는 func만 제외하면 된다
패키지 단위로 코드를 구분하기 때문에, 패키지 참조가 필요한 경우 수동으로는 go 설치 폴더 내 패키지들을 세팅하여 참조하도록 개발할 수 있다
허나 대부분은 코드를 github로 관리하기에, 이를 모듈화하여 참조하여 개발을 한다
module github.com/go-study
go 1.13
...
// +build calltest
go test -tags calltest