golang-samber-lo
Build Go Collection Pipelines with samber/lo
Manual Go collection transformations can become repetitive and difficult to optimize. This skill applies samber/lo helpers while explaining package choice, compatibility, errors, and performance tradeoffs.
Instalar con mi Agente
Copia esta solicitud en tu Agente. Incluye la página canónica del Skill y el manifiesto.
Review the Skillstore skill "golang-samber-lo" from https://skillstore.io/skills/samber-golang-samber-lo.md and its manifest at https://skillstore.io/api/skills/samber-golang-samber-lo/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Tu Agente debe seguir mostrando su plan y solicitar cualquier confirmación exigida por la política de seguridad.
Recursos legibles por agentes
Usa estos enlaces cuando un agente de IA, crawler o script necesite contexto limpio en vez de leer la página completa.
Pruébalo
Usando "golang-samber-lo". Choose between the standard library and samber/lo for checking membership in a string slice.
Resultado esperado:
- Recommendation: use slices.Contains when the project targets Go 1.21 or newer.
- Reason: the standard library already covers direct membership checks without another helper.
- Use lo.ContainsBy when membership requires a custom predicate.
Usando "golang-samber-lo". Select a package for three chained transformations over one million records on Go 1.23.
Resultado esperado:
- Recommendation: evaluate loi for a lazy, single-pass pipeline.
- Benefit: lazy iteration can remove intermediate slice allocations.
- Validation: compare memory profiles and benchmarks against the simpler lo implementation.
Usando "golang-samber-lo". Advise whether a request handler should use lo.Must when parsing user input.
Resultado esperado:
- Recommendation: return and handle the parsing error explicitly.
- Risk: lo.Must converts invalid input into a panic.
- Reserve lo.Must for startup or test failures where termination is intentional.
Auditoría de seguridad
SeguroAll 84 static findings are false positives caused by Markdown backticks, Go import syntax, documentation links, and ordinary Go terminology. No prompt injection, data exfiltration, reconnaissance, dynamic execution, or malicious command intent was found.
Factores de riesgo
⚙️ Comandos externos (50)
⚡ Contiene scripts (1)
🌐 Acceso a red (5)
Compartir y citar este informe
Comparte el informe de evaluación versionado, la insignia neutral, la tarjeta insertable y las citas. Skillstore presenta evidencias sin decidir si este Skill es seguro.
Copiar enlace del informe
https://skillstore.io/skills/samber-golang-samber-lo/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/samber-golang-samber-lo?utm_source=security_passport_badge)Insignia HTML
<a href="https://skillstore.io/skills/samber-golang-samber-lo?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-samber-lo/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Tarjeta para insertar
<iframe src="https://skillstore.io/embed/skills/samber-golang-samber-lo.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citas académicas (APA · BibTeX · CFF)
Cita APA
samber. (2026). golang-samber-lo security audit report (audit version 1) [Author version 1.2.2]. Skillstore. https://skillstore.io/skills/samber-golang-samber-lo/audits/1Cita BibTeX
@techreport{samber-samber-golang-samber-lo-2026,
author = {samber},
title = {golang-samber-lo security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-samber-lo/audits/1},
note = {Author version 1.2.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-samber-lo security audit report (audit version 1)"
version: "1.2.2"
type: report
authors:
- name: "samber"
date-released: "2026-09-06"
url: "https://skillstore.io/skills/samber-golang-samber-lo/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-samber-lo:audit:1"
description: "Skillstore immutable audit report identifier"
Puntuación de Skillstore
Por qué esta puntuación Confianza de la evidencia: MedioLo que puedes crear
Refactor collection loops
Convert repetitive slice and map loops into concise, typed samber/lo transformations while preserving behavior.
Optimize data transformations
Compare eager, parallel, mutable, and lazy approaches using workload size, CPU cost, allocation data, and Go version.
Evaluate library adoption
Assess where samber/lo adds value over standard library helpers and identify compatibility or maintenance tradeoffs.
Prueba estos prompts
Explain whether samber/lo is appropriate for [operation] in a project targeting Go [version]. Compare the standard library and lo, then recommend one.
Refactor this Go collection loop using samber/lo: [paste logic]. Preserve behavior, handle errors explicitly, and explain each selected helper.
Analyze this pipeline of [size] items and select lo, lop, lom, or loi. Consider CPU cost, allocations, mutation, concurrency, and Go version.
Design a production Go transformation for [input and goal] using samber/lo. Include error strategy, complexity, allocation tradeoffs, tests, and benchmark checkpoints.
Mejores prácticas
- Provide the Go version, data size, workload type, and current implementation with each request.
- State whether mutation, output order, partial failures, and cancellation are acceptable.
- Profile and benchmark before adopting mutable, parallel, lazy, or experimental variants.
Evitar
- Do not request parallel helpers without describing whether work is CPU-bound or input sizes are large.
- Do not replace standard library helpers solely because samber/lo is already installed.
- Do not use panic-based helpers for routine failures in handlers or long-running services.
Preguntas frecuentes
What does this skill help with?
Which Go versions are supported?
Should I always prefer samber/lo over the standard library?
When should I use lop?
Does lo modify input collections?
Can this skill optimize streaming pipelines?
Detalles del desarrollador
Autor
samberLicencia
MIT
Versión del autor
v1.2.2
Revisión de Skillstore
r1
Ref.
e5464e662405de6361fdde6b984f9ea865635f64
Actualidad del mantenimiento
8/9/2026
Uso
1 descargas · 0 vistas
Estructura de archivos