// 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() }
func main() { g := bad.NewBadLib() doBad(g) og := some.GetBadLib() doBad(og) }