Skip to content

Instantly share code, notes, and snippets.

@awly
Created October 19, 2015 17:43
Show Gist options
  • Save awly/01827c63677707104ab1 to your computer and use it in GitHub Desktop.
Save awly/01827c63677707104ab1 to your computer and use it in GitHub Desktop.
// src/fmt/foo.go
package fmt
import "internal/foo"
var _ = foo.Foo{}
// src/internal/foo/foo.go
package foo
type Foo struct{}
$ go build -v -a fmt
runtime
internal/foo
errors
sync/atomic
math
unicode/utf8
sync
io
syscall
strconv
time
reflect
os
fmt
$ echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment