mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
f1a38714d4
`NewResult` makes it easy to wrap a normal function call in a result value. `Err` can be used to check the error case of the result without unpacking the entire thing. `AndThen2` allows a caller to compose a function on two results values, with the closure only executing if both values are non-error. |
||
---|---|---|
.. | ||
conc_queue.go | ||
either.go | ||
events.go | ||
func.go | ||
go.mod | ||
go.sum | ||
map_test.go | ||
map.go | ||
option.go | ||
predicate.go | ||
queue.go | ||
recv.go | ||
result.go | ||
send.go | ||
set.go | ||
slice_test.go | ||
slice.go |