コード例 #1
0
// GetBadLib returns an instance of the bad lib.
// If no vendor is present, go will look back one vendor level until it does find it (or not).
// If vendor is present, that is the code it will use
func GetBadLib() *bad_lib.BadLib {
	return bad_lib.NewBadLib()
}
コード例 #2
0
func main() {
	g := bad.NewBadLib()
	doBad(g)
	og := some.GetBadLib()
	doBad(og)
}