utils

package
v1.1.0-rc-1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils contains utility functions and types used throughout the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk

func Chunk[T any](list []T, n int) [][]T

Chunk splits a list into a matrix of elements with a size of `n`

func FormatForStorage

func FormatForStorage(t time.Time) string

FormatForStorage formats a time.Time value to the ISO 8601 format

Types

type Clock

type Clock struct{}

func (*Clock) GetCurrentTime

func (c *Clock) GetCurrentTime() time.Time

Jump to

Keyboard shortcuts

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