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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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