Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFiles ¶
DownloadFiles copies githubarchive files locally
func FindDayPaths ¶
FindDayPaths returns the locations of all day like things in a subdir hierarchy
func MaybeDownloadFile ¶
MaybeDownloadFile checks if the githubarchive file is missing, and if so downloads it
Types ¶
type Event ¶
type Event struct {
Type string
RepoID int64
RepoName string
RepoLanguage string
UserID int64
UserName string
ForkID int64
ForkName string
CreatedAt string
}
Event holds parsed data about a single event from the Github Archive
func ParseEvent ¶
ParseEvent parses the JSON and returns a new Event struct. The JSON can be from multiple different formats produced by github over the years
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans over the contents of a githubarchive File
func NewScanner ¶
NewScanner open filename and creates a new scanner from its contents
Click to show internal directories.
Click to hide internal directories.