mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
In this commit, we add a new result type, which is just Either[A, error]. This is useful as we can always pass around/accept a single value. We add an Unpack() method which is the most idiomatic way of handling errors in Go, as we revert back to (A, error) when necessary. |
||
---|---|---|
.. | ||
conc_queue.go | ||
either.go | ||
events.go | ||
func.go | ||
go.mod | ||
go.sum | ||
map.go | ||
map_test.go | ||
option.go | ||
queue.go | ||
recv.go | ||
result.go | ||
send.go | ||
set.go | ||
slice.go | ||
slice_test.go |