modern-go / reflect2

reflect api without runtime reflect.Value cost
Apache License 2.0
758 stars 73 forks source link

gccgo compatibility #10

Closed paleozogt closed 4 years ago

paleozogt commented 4 years ago

Lots of projects use reflect2.TypeOf, but they can't be built with gccgo because of the way reflect2.TypeByName is implemented. Here's a slight modification to have gccgo skip type_map.go.

Projects that use reflect2.TypeByName will still be unbuildable by gccgo, but all the rest of reflect2 should work.

This fixes #6 and #9

codecov-io commented 4 years ago

Codecov Report

Merging #10 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   60.58%   60.58%           
=======================================
  Files          20       20           
  Lines         751      751           
=======================================
  Hits          455      455           
  Misses        280      280           
  Partials       16       16
Impacted Files Coverage Δ
type_map.go 47.45% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 94122c3...ce5cf29. Read the comment docs.