Open jasonliu119 opened 3 months ago
IIUC, the workload function is like:
func doSomething(data []byte, option map[string][]string) ([]byte, error)
Why do we choose []byte as the type of its param/output, not interface{} or Golang any?
Also, maybe option can be a param of type map[string]interface{}
I think it was mostly to avoid serialization issue.
IIUC, the workload function is like:
Why do we choose []byte as the type of its param/output, not interface{} or Golang any?