package
0.0.3
Repository: https://github.com/bittap-protocol/lnd.git
Documentation: pkg.go.dev

# README

lnutils

This package provides fundamental types and utility functions that can be used by all other packages.

# Functions

ByteSlice takes a byte array, and returns a slice.
ErrorAs behaves the same as `errors.As` except there's no need to declare the target error as a variable first.
Map takes an input slice, and applies the function f to each element, yielding a new slice.
Ptr returns the pointer of the given value.
RecvOrTimeout attempts to recv over chan c, returning the value.

# Structs

SyncMap wraps a sync.Map with type parameters such that it's easier to access the items stored in the map since no type assertion is needed.

# Interfaces

ByteArray is a type constraint for type that reduces down to a fixed sized array.