func sendLocalResp(enc *json.Encoder, resp minicli.Responses, more bool) error { r := miniclient.Response{ More: more, } if resp != nil { r.Resp = resp r.Rendered = resp.String() } return enc.Encode(&r) }
func sendLocalResp(enc *json.Encoder, resp minicli.Responses, more bool) error { log.Infoln("sending resp:", resp) r := localResponse{ More: more, } if resp != nil { r.Resp = resp r.Rendered = resp.String() } return enc.Encode(&r) }