func main() { worker.ParseFlags() p := &Person{} worker.PayloadFromJSON(p) fmt.Println("Hello go! My name is", p.Name) fmt.Println("Task id:", worker.TaskId) }
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) }