diff --git a/storage/dial.go b/storage/dial.go index 4193dfbfd..51d29b865 100644 --- a/storage/dial.go +++ b/storage/dial.go @@ -71,7 +71,7 @@ func getExcludedColumns(model interface{}, includeColumns ...string) ([]string, cols.Remove(f) } - xcols := make([]string, len(cols.Cols)) + xcols := make([]string, 0, len(cols.Cols)) for n := range cols.Cols { xcols = append(xcols, n) }