# Go Documentation

> Documentación de código en Go. Usar al documentar paquetes, APIs públicas, o crear ejemplos de uso. Use when this capability is needed.

- Skill: `tomevault-io/go-documentation` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/go-documentation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/go-documentation/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/go-documentation

---


# Skill: go-documentation

Documentación de código en Go.

## Cuándo usar este skill

- Al documentar paquetes nuevos
- Al documentar APIs públicas
- Al crear ejemplos de uso

## Comentario de Paquete

```go
// Package validator provides FHIR resource validation.
//
// # Quick Start
//
//  v, _ := validator.NewInitializedValidatorR4(ctx, opts)
//  result, _ := v.Validate(ctx, resource)
//
// # Configuration
//
// Configure with ValidatorOptions...
package validator
```

## Documentación de Funciones

```go
// Validate validates a FHIR resource and returns the validation result.
//
// The resource must be a valid JSON-encoded FHIR resource.
// Validate is safe for concurrent use.
//
// Example:
//
//  result, err := v.Validate(ctx, patientJSON)
//  if result.Valid {
//      fmt.Println("Valid!")
//  }
func (v *Validator) Validate(ctx context.Context, resource []byte) (*ValidationResult, error)
```

## Ejemplos Ejecutables

```go
// example_test.go
func Example() {
    v, _ := validator.NewInitializedValidatorR4(ctx, opts)
    result, _ := v.Validate(ctx, patient)
    fmt.Println(result.Valid)
    // Output: true
}
```

## Generar Documentación

```bash
go doc github.com/user/pkg.Function
godoc -http=:6060
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/gofhir) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

