func (cgd *GistDataUpdate) IsValid() bool {
	return true
}
validate gists update payload
package gists
import (
	"bytes"
	"encoding/json"
	"errors"
	ghclient "github.com/alcacoop/go-github-client/client"
	"net/http"
)
var (
	ErrInvalidGistDataCreate = errors.New("Invalid or nil Create Gist Data")
	ErrInvalidGistDataUpdate = errors.New("Invalid or nil Update Gist Data")
)
func (ghc *Gists) GetGist(gistId string) (res *ghclient.GithubResult, err error) {
	req, err := ghc.NewAPIRequest("GET", "gists/"+gistId, nil)
	if err != nil {
		return
	}
	httpc := new(http.Client)
	res, err = ghc.RunRequest(req, httpc)
	return
}
type GistDataCreate struct {
	Description string                     `json:"description,omitempty"`  
	Public      bool                       `json:"public"`                 
	Files       map[string]GistFileContent `json:"files"`                  
}
func NewGistDataCreate() *GistDataCreate {
	data := new(GistDataCreate)
	data.Files = make(map[string]GistFileContent)
	return data
}
func (cgd *GistDataCreate) IsValid() bool {
	return true
}
type GistDataUpdate struct {
	Description string                     `json:"description,omitempty"`  
	Files       map[string]GistFileContent `json:"files"`                  
}
func NewGistDataUpdate() *GistDataUpdate {
	data := new(GistDataUpdate)
	data.Files = make(map[string]GistFileContent)
	return data
}