util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-2-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(s string) []byte

Bytes converts string to byte slice.

func JoinAny

func JoinAny(sep string, elems ...any) string

func String

func String(b []byte) string

String converts byte slice to string.

func WithRecover

func WithRecover(fn func())

Types

type SafeRand

type SafeRand struct {
	// contains filtered or unexported fields
}

func NewSafeRand

func NewSafeRand() *SafeRand

func (*SafeRand) Int63n

func (r *SafeRand) Int63n(n int64) int64

Jump to

Keyboard shortcuts

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