golang-samber-mo
Compose Type-Safe Go Workflows with samber/mo
Optional values and repeated error checks can make multi-step Go workflows difficult to maintain. This skill guides explicit type choices and composable samber/mo pipelines.
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-mo" from https://skillstore.io/skills/samber-golang-samber-mo.md and its manifest at https://skillstore.io/api/skills/samber-golang-samber-mo/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-mo". Should a cached user and a fresh user use Result?
Resultado esperado:
Use Either when both outcomes are valid alternatives. Handle each variant explicitly; use Result when one outcome represents failure.
Usando "golang-samber-mo". Why can my Option integer not become a string through its direct Map method?
Resultado esperado:
Direct Map preserves the type parameter. Use option.Map from the sub-package for a type-changing transformation, then compose further steps with Pipe functions.
Usando "golang-samber-mo". Should an absent Option field disappear from JSON automatically?
Resultado esperado:
None normally serializes as null. For field omission, verify Go 1.24 or later and use the omitzero tag with compatible Option behavior.
Auditoría de seguridad
SeguroAll 89 static findings are false positives involving documentation formatting, Go struct tags, type-design examples, tool metadata, and legitimate resource links. The example HTTP request uses a placeholder domain without transmitting private data. No evidence found of malicious instructions, credential collection, exfiltration, or security-review manipulation in the supplied files.
Factores de riesgo
🌐 Acceso a red (5)
⚙️ Comandos externos (50)
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-mo/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/samber-golang-samber-mo?utm_source=security_passport_badge)Insignia HTML
<a href="https://skillstore.io/skills/samber-golang-samber-mo?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-samber-mo/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Tarjeta para insertar
<iframe src="https://skillstore.io/embed/skills/samber-golang-samber-mo.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-mo security audit report (audit version 1) [Author version 1.1.2]. Skillstore. https://skillstore.io/skills/samber-golang-samber-mo/audits/1Cita BibTeX
@techreport{samber-samber-golang-samber-mo-2026,
author = {samber},
title = {golang-samber-mo security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-samber-mo/audits/1},
note = {Author version 1.1.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-mo security audit report (audit version 1)"
version: "1.1.2"
type: report
authors:
- name: "samber"
date-released: "2026-10-18"
url: "https://skillstore.io/skills/samber-golang-samber-mo/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-samber-mo: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
Model Nullable API Fields
Choose Option fields for nullable SQL columns and JSON responses, with explicit null and omission behavior.
Simplify Internal Error Pipelines
Compose configuration loading, parsing, and validation with Result while preserving conventional public API signatures.
Explore Deferred Computations
Compare eager Future computations with lazy Task and IO abstractions before choosing an execution model.
Prueba estos prompts
Explain whether [field or operation] needs Option, Result, Either, or plain Go. Compare absence, failure, and valid alternatives.
Adapt [Go struct] to samber/mo Option fields for nullable SQL values. Explain JSON null versus omission and the required Go version.
Refactor [read, parse, validate workflow] using samber/mo Result sub-package functions. Preserve errors and return a conventional tuple at the public boundary.
Design [deferred workflow] with samber/mo Task or IO. Explain Future timing, error handling, and tests for execution order and failure propagation.
Mejores prácticas
- Choose types from domain meaning: Option for absence, Result for failure, and Either for valid alternatives.
- Use sub-package functions when types change, and preserve conventional tuples at public Go API boundaries.
- Compile examples and test absent values, errors, JSON output, and panic-sensitive extraction.
Evitar
- Wrapping every value in Option when ordinary zero values already express the domain.
- Using direct Map or FlatMap methods for transformations that change generic type parameters.
- Calling MustGet on uncertain values outside a deliberate panic-handling boundary.