Esempio 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)
}
Esempio 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)
}