goflow icon indicating copy to clipboard operation
goflow copied to clipboard

Why do we choose []byte as the type of workload func's param/output, not interface{}

Open jasonliu119 opened this issue 4 months ago • 2 comments

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?

jasonliu119 avatar Feb 23 '24 06:02 jasonliu119