Skip to content

Commit 32f937a

Browse files
committed
💄
1 parent 1a6b71f commit 32f937a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# mo - Monads
22

33
[![tag](https://img.shields.io/github/tag/samber/mo.svg)](https://github.com/samber/mo/releases)
4+
![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.18-%23007d9c)
45
[![GoDoc](https://godoc.org/github.com/samber/mo?status.svg)](https://pkg.go.dev/github.com/samber/mo)
56
![Build Status](https://github.com/samber/mo/actions/workflows/go.yml/badge.svg)
67
[![Go report](https://goreportcard.com/badge/github.com/samber/mo)](https://goreportcard.com/report/github.com/samber/mo)
7-
[![codecov](https://codecov.io/gh/samber/mo/branch/master/graph/badge.svg)](https://codecov.io/gh/samber/mo)
8+
[![Coverage](https://img.shields.io/codecov/c/github/samber/do)](https://codecov.io/gh/samber/mo)
9+
[![License](https://img.shields.io/github/license/samber/mo)](./LICENSE)
810

911
🦄 **`samber/mo` brings monads and popular FP abstractions to Go projects. `samber/mo` uses the recent Go 1.18+ Generics.**
1012

@@ -98,6 +100,18 @@ option3 := option1.Match(
98100

99101
More examples in [documentation](https://godoc.org/github.com/samber/mo).
100102

103+
### Tips for lazy developers
104+
105+
I cannot recommend it, but in case you are too lazy for repeating `mo.` everywhere, you can import the entire library into the namespace.
106+
107+
```go
108+
import (
109+
. "github.com/samber/mo"
110+
)
111+
```
112+
113+
I take no responsibility on this junk. 😁 💩
114+
101115
## 🤠 Documentation and examples
102116

103117
[GoDoc: https://godoc.org/github.com/samber/mo](https://godoc.org/github.com/samber/mo)

future_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ func TestFutureCompleteBeforeThen(t *testing.T) {
318318
})
319319

320320
<-completed
321+
//nolint:errcheck
321322
fut.Then(func(in int) (int, error) {
322323
fmt.Println(in) // will never been print
323324
return in, nil

0 commit comments

Comments
 (0)