Documentation ¶
Index ¶
- func Amend(args []string, dayOrDate string, month string, year string)
- func Delete(dayOrDate string, month string, year string)
- func GetTimesheetPath(timesheetDirectory string) string
- func InitializeDirectories() string
- func InitializeTimesheet(timesheetPath string) *os.File
- func List(dayOrDate string, month string, subCommand string, year string)
- func ReadTimesheet(file *os.File) [][]string
- func WriteToTimesheet(file *os.File, rows [][]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimesheetPath ¶
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 ¶
If the file does not already exist, create a new timesheet with column headers. Returns *os.File for writing.
func ReadTimesheet ¶
Read timesheet and extract the data into a nested list of strings.
func WriteToTimesheet ¶
Write data to to the timesheet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.