func (s GitignoresService) List() ([]string, *Response, error) {
	req, err := s.client.NewRequest("GET", "gitignore/templates", nil)
	if err != nil {
		return nil, nil, err
	}
	var availableTemplates []string
	resp, err := s.client.Do(req, &availableTemplates)
	if err != nil {
		return nil, resp, err
	}
	return availableTemplates, resp, nil
}
List all available Gitignore templates.

http://developer.github.com/v3/gitignore/#listing-available-templates
package github
import "fmt"
type GitignoresService service
type Gitignore struct {
	Name   *string `json:"name,omitempty"`
	Source *string `json:"source,omitempty"`
}
func (g Gitignore) String() string {
	return Stringify(g)
}