func (s *GitIgnoreService) One(uri *Hyperlink, params M) (template GitIgnoreTemplate, result *Result) {
	if uri == nil {
		uri = &GitIgnoreURL
	}
	url, err := uri.Expand(params)
	if err != nil {
		return GitIgnoreTemplate{}, &Result{Err: err}
	}
	result = s.client.get(url, &template)
	return
}
One gets a specific gitignore template based on the passed url
package octokit
var GitIgnoreURL = Hyperlink("/gitignore/templates{/name}")
func (c *Client) GitIgnore() *GitIgnoreService {
	return &GitIgnoreService{client: c}
}
type GitIgnoreService struct {
	client *Client
}
func (s *GitIgnoreService) All(uri *Hyperlink) (templates []string, result *Result) {
	if uri == nil {
		uri = &GitIgnoreURL
	}
	url, err := uri.Expand(nil)
	if err != nil {
		return make([]string, 0), &Result{Err: err}
	}
	result = s.client.get(url, &templates)
	return
}