functions

package
v0.0.0-...-5ce400c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package functions include the three functions GetURLs,GetInfo and InputData

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfo

func GetInfo(url string, ch chan string, flag chan bool)

getInfo gives a small description of every URL that was fetched. It takes three arguments; URL, and two channels. One channel stores the data that the function fetches from the URL and the other notifies.

func GetURLs

func GetURLs(url string, ch chan string, flag chan bool)

getURLs takes a URL as the argument and two channels of which one is used to Store all the fetched URLs concurrently from each goroutine and the flag channel Is used as a notification channel which publishes a done message after a goroutine Fetches all URLs.

func InputData

func InputData(InputFileName string) (url string, depth int64)

InputData takes a File name as the argument and returns the url and depth.

Types

This section is empty.

Jump to

Keyboard shortcuts

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