1
0
mirror of https://github.com/rclone/rclone.git synced 2025-03-17 20:27:52 +02:00
rclone/fs/rc/rc_old.go

15 lines
202 B
Go
Raw Normal View History

2018-03-14 21:48:01 +02:00
//+build !go1.7
package rc
import (
"encoding/json"
"io"
)
// WriteJSON writes JSON in out to w
func WriteJSON(w io.Writer, out Params) error {
enc := json.NewEncoder(w)
return enc.Encode(out)
}