mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
reformat readme
This commit is contained in:
parent
eda818c6e0
commit
78b90acc67
1 changed files with 32 additions and 25 deletions
37
README.md
37
README.md
|
|
@ -1,4 +1,4 @@
|
|||
# _Underscore
|
||||
# \_Underscore
|
||||
|
||||

|
||||
[](https://pkg.go.dev/github.com/rjNemo/underscore)
|
||||
|
|
@ -7,9 +7,11 @@
|
|||
|
||||

|
||||
|
||||
`underscore` is a `Go` library providing useful functional programming helpers without extending any built-in objects.
|
||||
`underscore` is a `Go` library providing useful functional programming helpers without
|
||||
extending any built-in objects.
|
||||
|
||||
It is mostly a port from the `underscore.js` library based on generics brought by `Go 1.18`.
|
||||
It is mostly a port from the `underscore.js` library based on generics brought by
|
||||
`Go 1.18`.
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
@ -46,12 +48,13 @@ func main() {
|
|||
|
||||
## Getting Started
|
||||
|
||||
These instructions will get you a copy of the project up and running on your local machine for development and testing
|
||||
purposes.
|
||||
These instructions will get you a copy of the project up and running on your local
|
||||
machine for development and testing purposes.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
You need at least `go1.18` for development. The project is shipped with a [Dockerfile](Dockerfile) based on `go1.18`.
|
||||
You need at least `go1.18` for development. The project is shipped with a [Dockerfile](Dockerfile)
|
||||
based on `go1.18`.
|
||||
|
||||
If you prefer local development, navigate to the [official
|
||||
download page](https://go.dev/dl/) and install version `1.18` or beyond.
|
||||
|
|
@ -92,6 +95,7 @@ make test
|
|||
- `Each`
|
||||
- `Filter`
|
||||
- `Flatmap`
|
||||
- `GroupBy`
|
||||
- `Find`
|
||||
- `Map`
|
||||
- `Max`
|
||||
|
|
@ -101,10 +105,11 @@ make test
|
|||
|
||||
### Pipe
|
||||
|
||||
Calling `NewPipe` will cause all future method calls to return wrapped values. When you've finished the computation,
|
||||
call `Value` to retrieve the final value.
|
||||
Calling `NewPipe` will cause all future method calls to return wrapped values. When
|
||||
you've finished the computation, call `Value` to retrieve the final value.
|
||||
|
||||
Methods not returning a slice such as `Reduce`, `All`, `Any`, will break the `Chain` and return `Value` instantly.
|
||||
Methods not returning a slice such as `Reduce`, `All`, `Any`, will break the `Chain`
|
||||
and return `Value` instantly.
|
||||
|
||||
## Built With
|
||||
|
||||
|
|
@ -112,8 +117,8 @@ Methods not returning a slice such as `Reduce`, `All`, `Any`, will break the `Ch
|
|||
|
||||
## Contributing
|
||||
|
||||
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull
|
||||
requests to us.
|
||||
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct,
|
||||
and the process for submitting pull requests to us.
|
||||
|
||||
## Versioning
|
||||
|
||||
|
|
@ -124,13 +129,15 @@ the [tags on this repository](https://github.com/rjNemo/underscore/tags).
|
|||
|
||||
- **Ruidy** - _Initial work_ - [Ruidy](https://github.com/rjNemo)
|
||||
|
||||
See also the list of [contributors](https://github.com/rjNemo/underscore/contributors) who participated in this project.
|
||||
See also the list of [contributors](https://github.com/rjNemo/underscore/contributors)
|
||||
who participated in this project.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md)
|
||||
file for details
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
This project is largely inspired by [Underscore.js](https://underscorejs.org/#) library. Check out the original project
|
||||
if you don't already know it.
|
||||
This project is largely inspired by [Underscore.js](https://underscorejs.org/#)
|
||||
library. Check out the original project if you don't already know it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue