tk

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TimeLayoutFormatMonth  = "2006-01"
	TimeLayoutFormatDay    = "2006-01-02"
	TimeLayoutFormatHour   = "2006-01-02 15"
	TimeLayoutFormatMinute = "2006-01-02 15:04"
	TimeLayoutFormatSecond = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func GetStartOfDay

func GetStartOfDay(t time.Time) time.Time

func Must

func Must[T any](t T, err error) T

func ParseTime

func ParseTime(s string) (t time.Time, err error)

func ParseTimePointer

func ParseTimePointer(s string) (*time.Time, error)

func Pointer

func Pointer[T any](t T) *T

func SetErrorHandler

func SetErrorHandler(fn func(err error))

func ZeroNilPointer

func ZeroNilPointer[T any](t T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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