my code like this: package main
package main import "fmt" func f(q int) { fmt.Println(q) } func g(p int) int { var sum int for i := 0; i < p; i++ { sum = sum + i } f(sum) return sum } func main() { c := g(4) + 1 _ = c } and i use command: GOOS=linux GOARCH=amd64 go tool compile -S main.go > main.S show the error: main.go:3: can't find import: "fmt" but i am sure my GOROOT is right。 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.