func main() { fmt.Println("main: packagea.A ==", packagea.A) fmt.Println("main.main()") fmt.Println("main: package.Inc() ==", packagea.Inc()) fmt.Println("main: packageb.B ==", packageb.B) fmt.Println("main: packagec.C ==", packagec.Caap) packagec.IncC() fmt.Println(ioutil.Discard) }
func init() { fmt.Println("Init package vendor/b") fmt.Println("b: a.A ==", a.A) fmt.Println("b: a.Inc() ==", a.Inc()) }
func init() { fmt.Println("Init package vendor/c") fmt.Println("c: C ==", C) fmt.Println("c: a.A ==", a.A) fmt.Println("c: a.Inc() ==", a.Inc()) }