util

package
v0.0.0-...-edf5a02 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes generates a random string of n characters

func Rotate

func Rotate(a interface{}, f, k, l int) int

Rotate rotates values of an array, between index f and l with midpoint k

func StablePartition

func StablePartition(a interface{}, f, l int, p func(i int) bool) int

StablePartition partitions elements of the array between indices f and l according to predicate p

Types

This section is empty.

Source Files

  • algorithm.go
  • randkey.go

Jump to

Keyboard shortcuts

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