mirror of
https://github.com/samber/lo.git
synced 2025-09-26 20:11:13 +08:00
chore: remove docker - a lightweight project is beautiful
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
# remove tests in order to clean dependencies
|
||||
- name: Remove xxx_test.go files
|
||||
run: rm -rf $(find . -type f -name "*_test.go") docker-compose.yml img/
|
||||
run: rm -rf $(find . -type f -name "*_test.go") img/
|
||||
|
||||
# cleanup test dependencies
|
||||
- name: Cleanup dependencies
|
||||
|
10
README.md
10
README.md
@@ -2989,7 +2989,7 @@ nth, err := lo.Nth([]int{0, 1, 2, 3}, -2)
|
||||
### NthOr
|
||||
|
||||
Returns the element at index `nth` of the collection. If `nth` is negative, it returns the `nth` element from the end. If `nth` is out of slice bounds, it returns the provided fallback value
|
||||
```go
|
||||
```go
|
||||
nth := lo.NthOr([]int{10, 20, 30, 40, 50}, 2, -1)
|
||||
// 30
|
||||
|
||||
@@ -4294,14 +4294,6 @@ Don't hesitate ;)
|
||||
|
||||
Helper naming: helpers must be self-explanatory and respect standards (other languages, libraries...). Feel free to suggest many names in your contributions.
|
||||
|
||||
### With Docker
|
||||
|
||||
```bash
|
||||
docker-compose run --rm dev
|
||||
```
|
||||
|
||||
### Without Docker
|
||||
|
||||
```bash
|
||||
# Install some dev dependencies
|
||||
make tools
|
||||
|
@@ -1,9 +0,0 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
dev:
|
||||
image: golang:1.18-bullseye
|
||||
volumes:
|
||||
- ./:/go/src/github.com/samber/lo
|
||||
working_dir: /go/src/github.com/samber/lo
|
||||
command: make watch-test
|
Reference in New Issue
Block a user