On Tue, Sep 27, 2016 at 5:08 PM, Ally Dale <vipa...@gmail.com> wrote: > > The puzzle I have face to is that I HAVE TO create a new Duration type, and > HAVE TO inherit all methods and constants from std.time.Duration.
Well, then, you have to replicate all the constants and methods. The methods on your new type can call the methods on time.Duration. You can write the constants directly. But this sounds like an XY problem. Why do you have to create a new Duration type? Ian -- 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.