utils

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginningOfDay

func BeginningOfDay(t time.Time) time.Time

BeginningOfDay returns the given time object formatted to its first millisecond of its day

func CloseFile added in v0.0.32

func CloseFile(file *os.File)

func CreateFile added in v0.0.32

func CreateFile(path string) *os.File

func EndOfDay

func EndOfDay(t time.Time) time.Time

EndOfDay returns the given time object formatted to its last millisecond of its day

func IndexOf

func IndexOf(haystack []Record, needle Record) int

func OpenBrowser added in v0.0.51

func OpenBrowser(url string)

func SubtractTime

func SubtractTime(time1, time2 time.Time) int64

func WriteFile added in v0.0.32

func WriteFile(file *os.File, content string)

Types

type Record

type Record struct {
	Time time.Time
	Type string
}

Jump to

Keyboard shortcuts

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