adrg / sysfont

Golang identification and matching of system fonts
https://pkg.go.dev/github.com/adrg/sysfont
MIT License
43 stars 13 forks source link

refactor: add support for go1.16's WalkDir #22

Open darkliquid opened 2 years ago

darkliquid commented 2 years ago

Add support for using the faster WalkDir method when building against go1.16.

This hopefully addresses the concerns with https://github.com/adrg/sysfont/pull/15 by making this backwards compatible.

codecov[bot] commented 2 years ago

Codecov Report

Merging #22 (853d54f) into master (0b7b89d) will increase coverage by 56.18%. The diff coverage is 60.00%.

@@             Coverage Diff             @@
##           master      #22       +/-   ##
===========================================
+ Coverage   10.34%   66.53%   +56.18%     
===========================================
  Files           4        6        +2     
  Lines         232      248       +16     
===========================================
+ Hits           24      165      +141     
+ Misses        208       71      -137     
- Partials        0       12       +12     
Impacted Files Coverage Δ
finder_dirwalk.go 58.33% <58.33%> (ø)
finder_walk.go 58.33% <58.33%> (ø)
finder.go 30.18% <100.00%> (+30.18%) :arrow_up:
registry.go 69.44% <0.00%> (+69.44%) :arrow_up:
utils.go 92.30% <0.00%> (+92.30%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.