File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 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
99101More 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments