Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB = 1024       // 1 KiB
	MiB = 1024 * KiB // 1 MiB
	GiB = 1024 * MiB // 1 GiB
)

Constants for common byte sizes

Variables

This section is empty.

Functions

func Zero

func Zero[T any]() T

Zero returns the zero value of type T

Types

type Sortable

type Sortable[T any] interface {
	Compare(T) int
}

Sortable is the interface required by slices.SortFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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