feat: funciones Go — core (cron, join_by_key, validate_struct), datascience (pivot, diff_entities), infra (http, cache, cron_ticker)

Nuevas funciones Go con tests en tres dominios:
- core: parse_cron_expr, next_cron_time, join_by_key, validate_struct_fields + tipo CronSchedule
- datascience: pivot (tabla dinámica), diff_entities (comparación de entidades)
- infra: http_get_json, http_post_json, http_download_file, cache_to_sqlite, cron_ticker

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 17:11:12 +02:00
parent 51d31a67d1
commit 53200cbc0d
35 changed files with 3042 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
---
name: cron_schedule
lang: go
domain: core
version: "1.0.0"
algebraic: product
definition: |
type CronSchedule struct {
Minute []int
Hour []int
DayOfMonth []int
Month []int
DayOfWeek []int
Raw string
}
description: "Representacion de una expresion cron parseada con los valores expandidos por campo. Raw preserva la expresion original para debug."
tags: [cron, schedule, scheduling, time, parsed]
uses_types: []
file_path: "functions/core/cron_schedule.go"
---
## Notas
Tipo producto inmutable por convencion. Cada campo contiene la lista completa de valores validos para ese campo (ej: Minute=[0,15,30,45] para `*/15`). Producido por ParseCronExpr, consumido por NextCronTime y CronTicker.