Exemplo n.º 1
0
func main() {
	worker.ParseFlags()
	p := &Person{}
	worker.PayloadFromJSON(p)
	fmt.Println("Hello go! My name is", p.Name)
	fmt.Println("Task id:", worker.TaskId)
}
Exemplo n.º 2
0
func main() {
	worker.ParseFlags()
	p := &Person{}
	worker.PayloadFromJSON(p)
	fmt.Println("Hello go! My name is ", p.Name)
	fmt.Println("Task id:", worker.TaskId)
	config, _ := worker.ConfigAsString()
	fmt.Println("Config:", config)
}