loader

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package loader manages loading CSV data into workouts struct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkoutsFromCSV

func CreateWorkoutsFromCSV(csvData io.Reader) (data.Workouts, error)

CreateWorkoutsFromCSV Creates workouts struct from CSV reader

func LoadWorkouts

func LoadWorkouts(path string) (data.Workouts, error)

LoadWorkouts Loads workouts from a CSV file which has been downloaded from Concept2

func LoadWorkoutsDir

func LoadWorkoutsDir(path string) (data.Workouts, error)

LoadWorkoutsDir Loads all the files in directory Potentially overly complicated. Was hoping this pipeline would be quicker

Types

This section is empty.

Jump to

Keyboard shortcuts

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