Hi Marcel, Thanks for sharing the plan. I'll pay close attention to this package. I actually have an existing private package that works but moving to a public working package would lower the maintenance cost and perhaps also guarantee a higher quality.
Johan On Fri, 5 Aug 2016 at 03:00 <m...@golang.org> wrote: > Hi Johan, > > I do plan to provide some kind functionality of this nature, I'm just not > quite sure yet how. It could either be: > > - the API as proposed > - returning an interface{} value of the underlying amount that the > user would need to cast to the appropriate type, > - returning some Number interface value > > I am currently working on the Number and plurals package. I planned to not > expose "amount" in the currency API until it is clear how all of this is > going to look like, as to avoid having to change the currency API later. > > Ideally we would also have a 128-bit precision decimal float type > available in core or the text package before finalizing such API. > > If this is really blocking, I could consider adding like a Value (or > Amount?) method to return the underlying raw interface of the amount. This > would not necessarily be incompatible with adding, for instance, a Decimal > and/or Number method later, although no guarantees it won't change. > > Marcel > > > > On Thu, Aug 4, 2016 at 11:07 AM, Johan Jian An Sim <johan...@gmail.com> > wrote: > >> There is no issue section in this repository to start a discussion. >> >> I would like to ask about the status of currency package. There seems to >> be plan for further development according to the comments ( >> https://github.com/golang/text/blob/master/currency/format.go#L26). Any >> update on this? >> >> I would love to use this package to store currency value and pass around >> my application. But there is currently no way to extract the stored amount. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.