Use generics internally
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by checking the module's Go version declaration and locating repeated slice-mapping boilerplate. The issue proposes raising the minimum Go version to 1.18 and adding a generic mapSlice helper; identify representative call sites and existing tests before making changes. Done means the minimum version and internal usage are updated and the relevant tests pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've purposefully not used generics for a long time internally because I didn't want to bump the required go version to 1.18 (it's currently go 1.17).
That's quite a few versions ago now, so it should be fine to bump this to go 1.18 and start using generics internally.
In particular, having a mapSlice[T, U any](s []T, func(T) U) []U helper would clean up a lot of repeated boilerplate.
- Ngôn ngữ chính
- Go
- Star
- 176
- Fork
- 27
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của peterstace/simplefeatures
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
peterstace/simplefeatures#726 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
peterstace/simplefeatures#725 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
peterstace/simplefeatures#722 ·
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
peterstace/simplefeatures#721 ·
Tất cả issue của peterstace/simplefeatures
Issue tương tự
-
area: import bug go good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
pulseaiclub/phi#615 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày