utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func ParsePage

func ParsePage(page uint64, size uint64) (offset, limit uint64)

func SubArray

func SubArray(subLen int, array sdk.SplitAble) (segments []sdk.SplitAble)

Types

This section is empty.

Directories

Path Synopsis
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go

Jump to

Keyboard shortcuts

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