View seeker.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"flag"
"fmt"
"log"
"os"
)
 
func main() {
View 29719780.go
1 2 3 4 5 6 7 8 9 10
// http://stackoverflow.com/questions/29719780/concurrent-send-receive-go-channel/29719960#29719960
package main
 
import (
"fmt"
"sync"
)
 
// emit emits value count number of times
func emit(value string, count int, out chan string, wg *sync.WaitGroup) {
View doaj-lang.txt
1 2 3 4 5 6 7 8 9 10
1446460 English
444981 Spanish
362822 Portuguese
108955 French
39770 German
38950 Italian
36680 Russian
25865 Turkish
24451 EN
17043 Chinese
View gist:0346a6d4228943919aac
  1. General Background and Overview
View b62.go
1 2 3 4 5
package main
 
func main() {
fmt.Println("Hello")
}
View bitwise.go
1 2 3 4 5
package main
 
func main() {
fmt.Println("1 + 1")
}
View gom.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
"log"
 
"github.com/bradfitz/gomemcache/memcache"
)
 
func main() {
View piping.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"bytes"
"exec"
"log"
"os"
)
 
// Pipeline strings together the given exec.Cmd commands in a similar fashion
View cmdlinefu.txt
1
find . -type f -size +1| xargs sed -ie '$s/$/\n/'
View output.txt
1 2 3 4 5 6 7 8 9 10
w size commit elapsed
1 1 1000 1.545
1 10 1000 0.307
1 50 1000 0.161
1 100 1000 0.131
1 500 1000 0.108
1 1000 1000 0.112
2 1 1000 1.231
2 10 1000 0.237
2 50 1000 0.121
Something went wrong with that request. Please try again.