followers

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(follower string, userObjList []User) bool

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

Types

type User

type User struct {
	Name      string
	Followers []string
}

func GenUserObjList

func GenUserObjList(rootUser string, numLvls, numFollowers uint8) ([]User, error)

DESC: Returns a list of 5 followers for the specified GithUb user as well as the followers of the followers numLevls levels deep. IN: rootUser: the initial user, numLvls: the number of levels deep to run, numFollowers: the number of followers to list for each user OUT: userObjList: a list of objects of type User - SUCCESS; err - FAILURE

Jump to

Keyboard shortcuts

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