unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.46k stars 250 forks source link

[BUG] miss makezero in slice init #555

Open alingse opened 1 month ago

alingse commented 1 month ago

I was running github actions to run linter makezero for top github golang repos.

see issues https://github.com/alingse/go-linter-runner/issues/1

and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9243197843/job/25427030599

====================================================================================================
append to slice `_gcgeg` with non-zero initialized length at https://github.com/unidoc/unipdf/blob/master/model/model.go#L4714:1[9](https://github.com/alingse/go-linter-runner/actions/runs/9243197843/job/25427030599#step:4:10)2
====================================================================================================

the _gcgeg :=make ([]string ,len (_ebebe ._cbag .Keys ())) should be _gcgeg :=make ([]string , 0,len (_ebebe ._cbag .Keys ()))

github-actions[bot] commented 1 month ago

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/