func List(url string, accessToken string) {
	if accessToken != "" {
		url = url + "?access_token=" + accessToken
	}
	res, err := http.Get(url)
	if err != nil {
		fmt.Printf("%s", err)
		os.Exit(1)
	}
	defer res.Body.Close()
	body, err := ioutil.ReadAll(res.Body)
	if err != nil {
		fmt.Printf("%s", err)
		os.Exit(1)
	}
	var jsonRes []GistJSON.Response
	err = json.Unmarshal(body, &jsonRes)
	if err != nil {
		fmt.Printf("%s", err)
		os.Exit(1)
	}
	for _, val := range jsonRes {
		fmt.Printf("%s\n", val.HtmlUrl)
		fmt.Printf("(%s)\t%s\n", shortDate(val.CreatedAt), val.Description)
		fmt.Printf("\n")
	}
}
/*
Show all gists for a user.
package Gist
import (
	"bytes"
	"encoding/json"
	"fmt"
	"github.com/MaximeD/gost/json"
	"github.com/MaximeD/gost/utils"
	"io/ioutil"
	"net/http"
	"os"
	"path"
	"strings"
	"time"
)