/imagine
/show
/info
/fast
package math | |
import "errors" | |
var ErrCantDivideByZero = errors.New("can't divide by zero") | |
// divide cannot be tested directly | |
func divide(x, y float32) float32 { | |
return x / y | |
} |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" |
To remove a submodule you need to:
curl -Lo /dev/null -skw \ | |
"\ntime_connect: \ | |
%{time_connect}s\ntime_namelookup: \ | |
%{time_namelookup}s\ntime_pretransfer: \ | |
%{time_pretransfer}\ntime_starttransfer: \ | |
%{time_starttransfer}s\ntime_redirect: \ | |
%{time_redirect}s\ntime_total: \ | |
%{time_total}s\n\n" \ | |
http://foolproofcode.com |
package main | |
import "sync" | |
import "fmt" | |
import "time" | |
func main() { | |
quit := make(chan interface{}, 10) | |
wg := sync.WaitGroup{} | |
wg.Add(1) |