util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: AGPL-3.0, ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

func IsBitSet

func IsBitSet(bytes []byte, bitPosition int) bool

func ReadJsonFile

func ReadJsonFile[T any](path string, res *T) (*T, error)

func ShuffleSliceCopy

func ShuffleSliceCopy[T any](src []T) (dst []T)

func Uint64ToBytes

func Uint64ToBytes(i uint64) []byte

func WriteDebugJsonLog

func WriteDebugJsonLog(l log.Logger, m string, arg interface{})

func WriteJsonFile

func WriteJsonFile[T any](path string, obj *T) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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