Skip to content

Instantly share code, notes, and snippets.

// filename: cmd/foo/foo.go
package main
import simple "simple"
func main() {
d := simple.GetData()
simple.PutData(d)
}
// filename: cmd/foo/foo.go
package main
import simple "simple"
func main() {
d := simple.GetData()
simple.PutData(d)
}
@andydude
andydude / foo.foo.go
Created April 5, 2012 16:59
Smallest example of a weird build error "nested/sub.Foo: undefined: nested/sub.bar"
// file: nested/foo/foo.go
package main
import "nested/sub"
func main() {
nestedsub.Foo()
}
$ git fetch
...
$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.andrew-working.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.