Beispiel #1
0
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)
}
Beispiel #2
0
func init() {
	fmt.Println("Init package vendor/b")
	fmt.Println("b: a.A ==", a.A)
	fmt.Println("b: a.Inc() ==", a.Inc())
}
Beispiel #3
0
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())
}