utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeRegex = regexp.MustCompile(`^(?:(\d+)[:])?(\d+)$`)

Functions

func FormatDate

func FormatDate(date time.Time) string

func ParseTime

func ParseTime(time string) (string, error)

parses time of format HH:mm to minutes needed for the Productive API which accepts minutes

func ReadFile

func ReadFile(path string) ([]byte, error)

func ReportError

func ReportError(message string, err error)

func WriteFile

func WriteFile(path string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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