utils

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package utils provides random utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpCborStructure

func DumpCborStructure(data interface{}, prefix string) string

DumpCborStructure generates an indented string representing an arbitrary data structure for debugging purposes

Types

type DoneSignal added in v0.75.0

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

DoneSignal provides a thread-safe way to close a channel and allows other routines to listen to the channel

func NewDoneSignal added in v0.75.0

func NewDoneSignal() *DoneSignal

func (*DoneSignal) Close added in v0.75.0

func (cn *DoneSignal) Close()

func (*DoneSignal) GetCh added in v0.75.0

func (cn *DoneSignal) GetCh() <-chan struct{}

Jump to

Keyboard shortcuts

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