utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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