network

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package network implements the network functionality.

Index

Constants

View Source
const (
	// LinkField is the spot to the Link field of the returned list.
	LinkField = iota
	// NameField is the equivalent for the Name field.
	NameField
)

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string) (io.ReadCloser, error)

DownloadFile returns the requested file as an io.Reader with corresponding close function.

func GetCourseList

func GetCourseList(url string) (list [][2]string, err error)

GetCourseList returns a list with the courses and the corresponding links to the exams.

func GetExamList

func GetExamList(url string) (list [][2]string, err error)

GetExamList returns a list with the exam name and the corresponding links to the files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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