config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDateTimePattern = "02 Jan 2006 15:04"
	DefaultDatePattern     = "02 Jan 2006"
	DataFileHeader         = "id,date,activity,hours,jira"
)

Variables

View Source
var (
	DefaultDayStart       = time.Date(now.Year(), now.Month(), now.Day(), 8, 45, 0, 0, time.Local).Format(DefaultDateTimePattern)
	DefaultTicketDuration = "4h"
)

Functions

func DataFilePath

func DataFilePath() string

func GenerateDataFileName

func GenerateDataFileName() string

GenerateDataFileName returns today's default datafile name without path.

func GetCurrentDataFileName

func GetCurrentDataFileName() string

GetCurrentDataFileName returns current datafile name without path.

func Header() []string

func Init

func Init()

func InitDataFile

func InitDataFile()

Types

This section is empty.

Jump to

Keyboard shortcuts

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