func (s *GitIgnoreService) One(uri *Hyperlink, uriParams M) (template *GitIgnoreTemplate, result *Result) {
	url, err := ExpandWithDefault(uri, &GitIgnoreURL, uriParams)
	if err != nil {
		return nil, &Result{Err: err}
	}
	result = s.client.get(url, &template)
	return
}
One gets a specific gitignore template based on the passed url

https://developer.github.com/v3/gitignore/#get-a-single-template
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) {
	url, err := ExpandWithDefault(uri, &GitIgnoreURL, nil)
	if err != nil {
		return nil, &Result{Err: err}
	}
	result = s.client.get(url, &templates)
	return
}