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: 0

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