This should be good enough to justify what is a zero duration.
在 2016年1月21日星期四 UTC+8下午12:57:26,peterGo写道:
>
> Simon,
>
> By design, the Go answer to problems like this is often a simple function.
> For example,
>
> package main
>
> import (
> "fmt"
> "time"
> )
>
> type DurationZero struc
This explanation is awesome!
在 2012年7月12日星期四 UTC+8上午12:42:41,Paul Borman写道:
>
> This has nothing to do with it being nil. The following always fails:
>
> s[len(s)] = hello
>
> The length of a nil slice is 0.
>
> You can "add" to a nil slice, "add" is spelled "append".
>
> -Paul
>
> On Wed
when run `go env`, i get the following output:
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/andy/Github/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fP