<pre class="notranslate">go version devel +b86ee06ef235 Mon Aug 18 16:52:31 2014 +0400 linux/amd64

Run the following program with GODEBUG=gctrace=1

package main
import "time"
func main() {
    for {
        time.Sleep(time.Second)
    }
}

gc1(1): 3+1+139+0 us, 0 -&gt; 0 MB, 13 (13-0) objects, 0/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg0: inuse: 17592186044400, idle: 15, sys: 1, released: 0, consumed: 1 (MB)
gc2(1): 3+1+178+0 us, 0 -&gt; 0 MB, 41 (41-0) objects, 11/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg1: GC forced
scvg1: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg2: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
gc3(1): 2+0+135+0 us, 0 -&gt; 0 MB, 33 (41-8) objects, 19/12/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg3: GC forced
scvg3: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg4: 0 MB released
scvg4: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
gc4(1): 2+0+135+0 us, 0 -&gt; 0 MB, 33 (41-8) objects, 19/10/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg5: GC forced
scvg5: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
scvg6: 0 MB released
scvg6: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)

inuse heap numbers look wrong.</pre>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<ol dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?</li>
</ol>
<p dir="auto">go version go1.6 linux/amd64</p>
<p dir="auto">(rest doesn't apply, since I don't report  a bug here)</p>
<p dir="auto">It would be nice to make it easier to define, shareable, read-only views of data from which many consumable readers can be derived.</p>
<p dir="auto">I did expect something like <a href="https://godoc.org/github.com/nightlyone/views/bytes" rel="nofollow">https://godoc.org/github.com/nightlyone/views/bytes</a><br>
and <a href="https://godoc.org/github.com/nightlyone/views/strings" rel="nofollow">https://godoc.org/github.com/nightlyone/views/strings</a> in the respective bytes and strings packages of the stdlib.</p>
<p dir="auto">These are useful in interfaces like <a href="https://godoc.org/github.com/nightlyone/views" rel="nofollow">https://godoc.org/github.com/nightlyone/views</a></p>