Example #1
0
func getCmd(client *server.Client, id string) {

	r, e := client.Reader(id)
	if e != nil {
		fmt.Fprintf(os.Stderr, "%v\n", e)
		os.Exit(1)
	}
	io.Copy(os.Stdout, r)
}