timesheet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Amend

func Amend(args []string, dayOrDate string, month string, year string)

Amend a shift in the timesheet.

func Delete

func Delete(dayOrDate string, month string, year string)

Delete the selected shift from the timesheet.

func GetTimesheetPath

func GetTimesheetPath(timesheetDirectory string) string

Create the path to the timesheet.

func InitializeDirectories

func InitializeDirectories() string

Initialize the directories in which the timesheet will be stored. Returns a string denoting the path to the timesheet directory.

func InitializeTimesheet

func InitializeTimesheet(timesheetPath string) *os.File

If the file does not already exist, create a new timesheet with column headers. Returns *os.File for writing.

func List

func List(dayOrDate string, month string, subCommand string, year string)

Pull and list records from timesheets.

func ReadTimesheet

func ReadTimesheet(file *os.File) [][]string

Read timesheet and extract the data into a nested list of strings.

func WriteToTimesheet

func WriteToTimesheet(file *os.File, rows [][]string)

Write data to to the timesheet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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