View definition

(*RepositoriesService).GetContents

Defined in github.com/google/go-github/github/repos_contents.go

Description

GetContents can return either the metadata and content of a single file (when path references a file) or the metadata of all the files and/or subdirectories of a directory (when path references a directory). To make it easy to distinguish between both result types and to mimic the API as much as possible, both result types will be returned but only one will contain a value and the other will be nil.

GitHub API docs: http://developer.github.com/v3/repos/contents/#get-contents