Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"log"
"os/exec"
"time"
"github.com/robfig/cron"
)
package main
import (
"bytes"
"fmt"
"log"
"os/exec"
"time"
)
package main
import (
"fmt"
"runtime"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/text/gstr"
package main
import (
"fmt"
"math/rand"
"time"
)
func worker(pipeline chan<- int, counter int) {
t := rand.Intn(10)
package main
import (
"fmt"
"time"
)
func sender(out chan<- int) {
for {
time.After(1 * time.Second)