plans

package
v0.0.0-...-0c799af Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SQUAT    = "Squat"
	DEADLIFT = "Deadlift"
	BENCH    = "Bench"
	PRESS    = "Press"
)

Functions

func NewCustom531

func NewCustom531(settings *WorkoutPlanSettings) *custom531

func NewStrongliftsPlan

func NewStrongliftsPlan(settings *WorkoutPlanSettings) *strongliftsPlan

func NewWendler531BBB

func NewWendler531BBB(settings *WorkoutPlanSettings) *wendler531BBB

func ParsePlates

func ParsePlates(strPlates string) ([]float32, error)

Types

type PlateCalcFunction

type PlateCalcFunction func(setWeights []int) []*platecalc.Tree

type WorkoutPlan

type WorkoutPlan interface {
	Write(w *csv.Writer)
}

type WorkoutPlanSettings

type WorkoutPlanSettings struct {
	Plan               string `yaml:"Plan"`
	Plates             string `yaml:"Plates"`
	SquatRepMax        int    `yaml:"SquatRepMax"`
	DeadliftRepMax     int    `yaml:"DeadliftRepMax"`
	PressRepMax        int    `yaml:"PressRepMax"`
	BenchRepMax        int    `yaml:"BenchRepMax"`
	TrainingMaxPercent int    `yaml:"TrainingMaxPercent"`
	Progression5s      bool   `yaml:"Progression5s"`
	PreferLessPlates   bool   `yaml:"PreferLessPlates"`
	PlateCalcFn        PlateCalcFunction
}

Jump to

Keyboard shortcuts

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