go/constant: add accessors for float and int constants #29820
Labels
FeatureRequest
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Constants with the kind
constant.Float
andconstant.Int
are represented by the types*big.Float
,*big.Rat
, and*big.Int
, but users of the go/constant package aren't able to access these values. It would make things a lot simpler for users if we could add an accessor to these values in the go/constant package.Justification: https://github.com/golang/tools/blob/a53bc13a6341e9847bbcf8c0a0691e60e18a87c0/go/internal/gcimporter/bexport.go#L624.
The text was updated successfully, but these errors were encountered: