From: Rob Pike Date: Sun, 3 Jan 2010 20:36:39 +0000 (+1100) Subject: fix up YB and add ZB, EB in example X-Git-Tag: weekly.2010-01-05~13 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c05f86a46a782283e217a0704616753fa7dbb3cf;p=gostls13.git fix up YB and add ZB, EB in example R=rsc CC=golang-dev https://golang.org/cl/183107 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 2932709502..ab9e3a8c3d 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1360,6 +1360,8 @@ const ( GB TB PB + EB + ZB YB ) @@ -1373,6 +1375,10 @@ func (b ByteSize) String() string { switch { case b >= YB: return fmt.Sprintf("%.2fYB", b/YB) + case b >= ZB: + return fmt.Sprintf("%.2fZB", b/ZB) + case b >= EB: + return fmt.Sprintf("%.2fEB", b/EB) case b >= PB: return fmt.Sprintf("%.2fPB", b/PB) case b >= TB: