start new:
tmux
start new with session name:
tmux new -s myname
package main | |
import "fmt" | |
// Generate the input values passing through the go channel pipe | |
func generate(ch chan int) { | |
go func() { | |
for i := 2; ; i++ { | |
ch <- i | |
} |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
var jsonStr = []byte(` | |
{ | |
"things": [ |