common

package
v0.0.0-...-3a05e6f Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandUploadSpendee = "upload_spendee"

	SessionTimeout = 10 * time.Second
)

Variables

View Source
var (
	ErrNoChanges = errors.New("no changes")
	ErrTimeout   = errors.New("timeout")
	ErrNoSession = errors.New("no active session")
)

Functions

func InsertAndShift

func InsertAndShift[T any](slice []T, element T) []T

func ParseSpendeeDate

func ParseSpendeeDate(dateString string) time.Time

Helper function to parse the date string into a time.Time object

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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