parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParseCafeteria = errors.New("could not parse cafeteria")
View Source
var ErrParseSchedule = errors.New("could not parse schedule")
View Source
var ErrParseWallet = errors.New("could not parse wallet")

Functions

func ParseCafeteria

func ParseCafeteria(r io.Reader) (*data.Cafeteria, error)

ParseCafeteria parses the HTML response from mySu. The reader must be an io.Reader of the HTML response. It returns a Cafeteria struct containing the cafeteria menu.

func ParseSchedule

func ParseSchedule(r io.Reader) (*data.Schedule, error)

ParseSchedule parses the HTML response from mySU. The reader must be an io.Reader of the HTML response. It returns a Schedule struct containing the schedule.

func ParseWallet

func ParseWallet(r io.Reader) (*data.Wallet, error)

ParseWallet parses the JSON response from mySU. The response is parsed into a Wallet struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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