util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: BSD-3-Clause, MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(x int) int

func AcmeError

func AcmeError(s string, err error)

func Cvttorunes

func Cvttorunes(p []byte, n int) (r []rune, nb int, nulls bool)

Cvttorunes decodes runes r from p. It's guaranteed that first n bytes of p will be interpreted without worrying about partial runes. This may mean reading up to UTFMax-1 more bytes than n; the caller must ensure p is large enough. Partial runes and invalid encodings are converted to RuneError. Nb (always >= n) is the number of bytes interpreted.

If any U+0000 rune is present in r, they are elided and nulls is set to true.

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func Minu

func Minu(a, b uint) uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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