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

util

package
v1.18.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package util provides miscellaneous helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoundDown

func RoundDown(x, multiple int) int

RoundDown rounds x down to the next specified multiple. Again, this implementation is equivalent to the kernel's rounddown().

func RoundUp

func RoundUp(x, multiple int) int

RoundUp rounds x up to the next specified multiple. This implementation is equivalent to the kernel's roundup().

Types

This section is empty.

Jump to

Keyboard shortcuts

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