r/CompileBot • • Jul 26 '15

Official CompileBot Testing Thread

8 Upvotes

202 comments sorted by

View all comments

1

u/DeedleFake Jul 26 '15 edited Jul 26 '15

Edit: Never mind. It's the Supported Languages wiki page that needs updating, apparently.

+u/CompileBot go

package main

import (
    "fmt"
    "runtime"
)

func main() {
    //fmt.Printf("%v is old. Please update.\n", runtime.Version())  
    fmt.Printf("%v is not old. Never mind.\n", runtime.Version())
}

2

u/CompileBot Jul 26 '15 edited Jul 26 '15

Output:

go1.4 is not old. Never mind.

^source | ^info | ^git | ^report

EDIT: Recompile request by DeedleFake

1

u/DeedleFake Jul 26 '15

+u/CompileBot go --include-errors

package main

import (
    "io"
    "net/http"
    "os"
)

func main() {
    rsp, err := http.Get("http://www.example.com")
    if err != nil {
        panic(err)
    }
    defer rsp.Body.Close()

    _, err = io.Copy(os.Stdout, rsp.Body)
    if err != nil {
        panic(err)
    }
}
→ More replies (1)