News for hackers. Stuff that matters.
Re:Porting dl.google.com from C++ to Go by ballard on Friday July 26, 2013 @08:30PM (#6111330)
This doesn't reveal any secrets into systems engineering, but it slices:

    package main

    import "fmt"
    
    func main() {
        cake := make([]byte, 2600)
        copy(cake, []byte("Happy Birthday, Lundberg !"))
        lundberg := cake[:8]
        milton := cake[:0]
        fmt.Println("Lundberg got :", string(lundberg))
        fmt.Println("Milton got :", string(milton))
    }

    // :-)  (Ran out of UTF8 smileys and movie fact checkers).
    // And yes could've used string but bytes are awesomer.
Re:Porting dl.google.com from C++ to Go by pjmlp on Sunday July 28, 2013 @02:03AM (#6115785)
Slices aren't Go specific.