Skip to content

Instantly share code, notes, and snippets.

@quag
Created November 18, 2009 08:57
Show Gist options
  • Save quag/237666 to your computer and use it in GitHub Desktop.
Save quag/237666 to your computer and use it in GitHub Desktop.
package a
func Function() {
}
$ make
6g -o _go_.6 example.go a.go
example.go:3: fatal error: can't find import: ./a
make: *** [_go_.6] Error 1
package main
import "./a"
func main() {
a.Function();
}
include $(GOROOT)/src/Make.$(GOARCH)
TARG=example
GOFILES=\
example.go\
a.go\
include $(GOROOT)/src/Make.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment