gearman-go/src/pkg/gearman/gearman_test.go

14 lines
186 B
Go
Raw Normal View History

2011-03-15 20:21:42 +08:00
package main
import (
"gearman"
"fmt"
)
func main() {
worker := gearman.GearmanWorkerCreate()
worker.AddServer("127.0.0.1", 4730)
worker.Work()
worker.Free()
}