repos

package
v0.0.0-...-9eae391 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDuplicateUser

func IsDuplicateUser(stargazer string, userObjList []User) bool

DESC: Checks if a repos's stargazer has already been visited IN: stargazer: the stargazers's name: userObjList: the current list of users OUT: bool: true if the stargazer has already been visited, false if the user has never been visited

Types

type Repo

type Repo struct {
	RepoName
	Stargazers []string
}

type RepoName

type RepoName struct {
	Owner string
	Name  string
}

type User

type User struct {
	Name  string
	Repos []RepoName
}

type UserRepo

type UserRepo struct {
	Users []User
	Repos []Repo
}

func GenRepoStargazerLists

func GenRepoStargazerLists(rootUser string, numLvls, numRepos, numStargazers uint8) (UserRepo, error)

DESC: Returns a list of 5 repositories for a specified GitHub user and a list of 5 stargazers for each repository. The lists go numLvls levels deep. IN: rootUser: the initial username to list repositories for, numLvls: the number of levels deep to run, numRepos: the number of repositories to list for the specified user, numStargazers: the number of stargazers to list for the specified repo OUT: An object of type UserRepo which contains the list of User objects and the list of Repo objects

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL