Closed as not planned
Description
Request from coworkers: Govet or lint could warn about appends to slices which were made with a length (but not a capacity) and had no intervening mutations: s := make([]Foo, len(m)) // accidental length; user meant capacity: make([]Foo, 0, len(m)) for k, v := range m { .... s = append(s, foo) }