Example #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)
}
Example #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)
}