Skip to content

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

Description

@jasonliu119

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions