utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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

Directories

Path Synopsis
Package k8s contains helpers for working with the Kubernetes Client.
Package k8s contains helpers for working with the Kubernetes Client.
Package lock provides an interface for file-based locking.
Package lock provides an interface for file-based locking.
Package parallel provides utilities for running tasks in parallel.
Package parallel provides utilities for running tasks in parallel.
Package telemetry contains code for posting telemetry data to the CloudZero API.
Package telemetry contains code for posting telemetry data to the CloudZero API.

Jump to

Keyboard shortcuts

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