Use generics internally
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 176
- Forks
- 27
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de peterstace/simplefeatures
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
peterstace/simplefeatures#726 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
peterstace/simplefeatures#725 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
peterstace/simplefeatures#722 ·
-
bug
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
peterstace/simplefeatures#721 ·
Todos los issues de peterstace/simplefeatures
Issues similares
-
area: import bug go good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Abiertoenhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloverworks-hq/rumpty-cli#95 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
pulseaiclub/phi#615 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día