package demo import ( "context" "git.yuntuo.hk/k2safe/go-omni/httpx" "io" "strings" ) func (l *Logic) Download(context.Context) (*httpx.Stream, error) { return &httpx.Stream{Content: io.NopCloser(strings.NewReader("file-content")), Name: "example.txt"}, nil }