> The standard text marshaling and unmarshaling work fine.
Ok, I get you.
I guess I'm looking for something a little more human friendly than
nanoseconds!
In that case I'll proceed with my new-type, thanks!
On Wednesday, 19 January 2022 at 3:19:44 pm UTC+11 Ian Lance Taylor wrote:
> On Mon,
On Mon, Jan 17, 2022 at 9:53 PM Corin Lawson wrote:
>
> It seems obvious (to me) that the encoding.TextUnmarshaler interface could be
> implemented for time.Duration (it is implemented for time.Time, afterall).
>
> The fact that it is not gives me pause... is there a good reason that the
> stdli
go-zero (listed in CNCF Landscape:
https://landscape.cncf.io/?selected=go-zero) is a web and rpc framework
with lots of builtin engineering practices. It’s born to ensure the
stability of the busy services with resilience design, and has been serving
sites with tens of millions users for year
Hi,
I'm trying to write a Tun device for linux. I learned a lot
from github.com/songgao/water and wireguard-go on how to create a tun
interface.
However, I'm not sure how to leverage std/net to read from and write to it.
water seems to leave the read & write part to its users, and wireguard-go
Dear, Ian.
You are correct and I was wondering why the reassignment did not work in
the case of *x *var*. *I found the answer in the Effective Go
documentation, in the *Redeclaration and reassignment* section:
In a := declaration *a variable v may appear even if it has already been
> declared*, *