chore: auto-commit (799 archivos)
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ version: 0.1.0
|
||||
purity: impure
|
||||
signature: "func CdpClickText(c *CDPConn, text string, opts FindByTextOpts) error"
|
||||
description: "Localiza el primer elemento cuyo innerText matchea el texto dado y le hace click. Composicion de CdpFindByText + CdpClick. Mas robusto que click por selector CSS porque el texto visible cambia menos que la estructura del DOM."
|
||||
tags: [browser, cdp, click, locator, accessibility]
|
||||
tags: [browser, cdp, click, locator, accessibility, pendiente-usar]
|
||||
uses_functions:
|
||||
- cdp_find_by_text_go_browser
|
||||
- cdp_click_go_browser
|
||||
|
||||
@@ -7,7 +7,7 @@ version: 0.1.0
|
||||
purity: impure
|
||||
signature: "func CdpHarRecord(c *CDPConn, action func() error, settleMs int) (string, error)"
|
||||
description: "Captura todas las peticiones HTTP/WS que ocurren durante la ejecucion de `action` y devuelve un archivo HAR 1.2 valido como JSON. Habilita Network.* events de CDP, suscribe handlers para requestWillBeSent / responseReceived / loadingFinished / loadingFailed, ejecuta la accion del usuario, espera settleMs para eventos rezagados, y construye el HAR. Body de respuesta no incluido en v0 (requiere Network.getResponseBody adicional)."
|
||||
tags: [browser, cdp, har, network, capture, observability]
|
||||
tags: [browser, cdp, har, network, capture, observability, pendiente-usar]
|
||||
uses_functions:
|
||||
- cdp_evaluate_go_browser
|
||||
uses_types: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: 0.1.0
|
||||
purity: impure
|
||||
signature: "func CdpListTabs(host string, port int) ([]CdpTab, error)"
|
||||
description: "Lista las pestañas/targets de una instancia Chrome via GET /json. Sin websocket — solo HTTP. Util para apps que muestran el inventario de pestañas (dashboards, debuggers) o agentes que iteran tabs sin tener que abrir conexion CDP a cada una."
|
||||
tags: [browser, cdp, tabs, listing, http]
|
||||
tags: [browser, cdp, tabs, listing, http, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: 0.1.0
|
||||
purity: impure
|
||||
signature: "func CdpNewTab(host string, port int, startURL string) (CdpTab, error)"
|
||||
description: "Abre una pestaña nueva via /json/new. Si startURL es vacio Chrome abre about:blank. Retorna el CdpTab recien creado con su id, webSocketDebuggerUrl, etc. Compatible con Chrome 126+ (PUT) y anteriores (fallback GET)."
|
||||
tags: [browser, cdp, tabs, spawn]
|
||||
tags: [browser, cdp, tabs, spawn, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -8,7 +8,7 @@ purity: impure
|
||||
version: 1.0.0
|
||||
tested: false
|
||||
description: "Establece una cookie en el browser via Network.setCookie del protocolo CDP. Soporta cookies HttpOnly. Util para tests e2e que necesitan autenticar el browser sin pasar por la UI de login."
|
||||
tags: [cdp, browser, cookie, e2e, auth]
|
||||
tags: [cdp, browser, cookie, e2e, auth, pendiente-usar]
|
||||
signature: "func CdpSetCookie(c *CDPConn, name, value, domain, path string, httpOnly bool) error"
|
||||
uses_functions:
|
||||
- cdp_connect_go_browser
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func All[T any](slice []T, predicate func(T) bool) bool"
|
||||
description: "Devuelve true si todos los elementos del slice cumplen el predicado."
|
||||
tags: [slice, functional, generic, predicate]
|
||||
tags: [slice, functional, generic, predicate, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Any[T any](slice []T, predicate func(T) bool) bool"
|
||||
description: "Devuelve true si al menos un elemento del slice cumple el predicado."
|
||||
tags: [slice, functional, generic, predicate]
|
||||
tags: [slice, functional, generic, predicate, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func AssertContainsAll(haystack, needles []string) (bool, []string)"
|
||||
description: "Verifica que el slice haystack contiene todos los elementos de needles. Retorna (true, nil) si todos estan presentes, o (false, missing) con los elementos faltantes."
|
||||
tags: [testing, assert, slice, contains, pure]
|
||||
tags: [testing, assert, slice, contains, pure, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func AssertJSONEqual(expected, actual []byte) (bool, string)"
|
||||
description: "Compara dos payloads JSON por igualdad semantica. Insensible al orden de claves. Retorna (true, \"\") si son equivalentes o (false, diff) con descripcion legible de la diferencia."
|
||||
tags: [testing, json, assert, diff, pure]
|
||||
tags: [testing, json, assert, diff, pure, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Chunk[T any](xs []T, size int) [][]T"
|
||||
description: "Divide un slice en trozos (sub-slices) de tamanio N. El ultimo trozo puede contener menos de N elementos. Retorna nil si el slice esta vacio. Entra en panic si size <= 0."
|
||||
tags: [slice, chunk, batch, generic]
|
||||
tags: [slice, chunk, batch, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func CompareVersions(a, b string) int"
|
||||
description: "Compara dos strings de version semantica (semver). Soporta formato con o sin prefijo 'v'. Retorna -1, 0 o 1."
|
||||
tags: [core, version, semver, compare, parse]
|
||||
tags: [core, version, semver, compare, parse, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Compose2[A, B, C any](f2 func(B) C, f1 func(A) B) func(A) C"
|
||||
description: "Compone dos funciones de derecha a izquierda. compose2(g, f)(x) = g(f(x))."
|
||||
tags: [functional, composition, generic]
|
||||
tags: [functional, composition, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Const[T, U any](value T) func(U) T"
|
||||
description: "Devuelve una funcion que siempre retorna el valor dado, ignorando su argumento."
|
||||
tags: [functional, generic, const]
|
||||
tags: [functional, generic, const, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func CronMatch(sched CronSchedule, t time.Time) bool"
|
||||
description: "Verifica si un instante de tiempo coincide con un cron schedule. Compara los 5 campos (minuto, hora, dia del mes, mes, dia de la semana) y retorna true si todos coinciden."
|
||||
tags: [cron, scheduling, matching, time, pure]
|
||||
tags: [cron, scheduling, matching, time, pure, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [cron_schedule_go_core]
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Curry2[A, B, C any](f func(A, B) C) func(A) func(B) C"
|
||||
description: "Transforma una funcion de dos argumentos en forma currificada."
|
||||
tags: [functional, generic, curry]
|
||||
tags: [functional, generic, curry, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func DetectCycle(conn *sql.DB, table, fromCol, toCol, filterCol, fromNode, toNode string) error"
|
||||
description: "Detecta ciclos en un grafo dirigido almacenado en SQLite usando BFS antes de insertar una arista."
|
||||
tags: [graph, cycle, bfs, sqlite, validation]
|
||||
tags: [graph, cycle, bfs, sqlite, validation, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Drop[T any](slice []T, n int) []T"
|
||||
description: "Elimina los primeros n elementos de un slice y devuelve el resto."
|
||||
tags: [slice, functional, generic]
|
||||
tags: [slice, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func FilterSlice[T any](xs []T, pred func(T) bool) []T"
|
||||
description: "Filtra un slice aplicando un predicado sin mutar el original. Retorna un nuevo slice con los elementos que cumplen la condicion."
|
||||
tags: [slice, functional, generic, filter]
|
||||
tags: [slice, functional, generic, filter, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func FindIndex[T any](slice []T, predicate func(T) bool) Option[int]"
|
||||
description: "Devuelve el indice del primer elemento que cumple el predicado, envuelto en Option."
|
||||
tags: [slice, functional, generic, search]
|
||||
tags: [slice, functional, generic, search, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [option_go_core]
|
||||
returns: [option_go_core]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func FlatMapSlice[T, U any](slice []T, f func(T) []U) []U"
|
||||
description: "Aplica una funcion que devuelve slices a cada elemento y aplana el resultado."
|
||||
tags: [slice, functional, generic, flatmap]
|
||||
tags: [slice, functional, generic, flatmap, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Flatten[T any](slices [][]T) []T"
|
||||
description: "Aplana un slice de slices en un unico slice."
|
||||
tags: [slice, functional, generic]
|
||||
tags: [slice, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Flip[A, B, C any](f func(A, B) C) func(B, A) C"
|
||||
description: "Intercambia el orden de los argumentos de una funcion de dos parametros."
|
||||
tags: [functional, generic]
|
||||
tags: [functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func GenerateID(name, lang, domain string) string"
|
||||
description: "Genera un ID canonico determinista a partir de nombre, lenguaje y dominio."
|
||||
tags: [id, naming, deterministic]
|
||||
tags: [id, naming, deterministic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func GoldenDiff(actual, golden []byte, threshold float64) (matched bool, similarity float64)"
|
||||
description: "Compara dos buffers byte-a-byte y retorna una puntuacion de similitud en [0,1]. similarity = matchedBytes / max(len(actual), len(golden)). matched = similarity >= (1.0 - threshold). threshold=0.0 exige match exacto; threshold=0.05 tolera hasta 5% de divergencia."
|
||||
tags: [diff, golden, testing, similarity, bytes, comparison]
|
||||
tags: [diff, golden, testing, similarity, bytes, comparison, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func GroupBy[T any, K comparable](slice []T, keyFn func(T) K) map[K][]T"
|
||||
description: "Agrupa elementos de un slice por clave generada con una funcion."
|
||||
tags: [slice, functional, generic, grouping]
|
||||
tags: [slice, functional, generic, grouping, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func HtmlToMarkdown(html string) string"
|
||||
description: "Convierte HTML a markdown legible. Parser recursivo del DOM via golang.org/x/net/html. MVP best-effort: soporta headings, parrafos, links, strong/em, code, pre, listas, blockquote, img, br, hr. Skippea script/style/noscript y sus descendientes. Texto plano con whitespace colapsado. Entidades HTML decodificadas."
|
||||
tags: [html, markdown, converter, parsing, text, core]
|
||||
tags: [html, markdown, converter, parsing, text, core, pendiente-usar]
|
||||
params:
|
||||
- name: html
|
||||
desc: "String HTML completo o fragmento a convertir. Puede incluir doctype, head y body, o ser solo un fragmento de markup."
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Identity[T any](x T) T"
|
||||
description: "Devuelve el valor recibido sin modificarlo. Elemento neutro de la composicion."
|
||||
tags: [functional, generic, identity]
|
||||
tags: [functional, generic, identity, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func JoinByKey(left, right []map[string]any, key, how string) []map[string]any"
|
||||
description: "Join de dos slices de map[string]any por una clave comun. Soporta inner, left, right y outer. Campos duplicados del right se sufijan con _right. Algoritmo O(n+m)."
|
||||
tags: [tabular, join, merge, go, core]
|
||||
tags: [tabular, join, merge, go, core, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func LongestCommonPrefix(items []string) string"
|
||||
description: "Retorna el prefijo comun mas largo compartido por todos los strings del slice. Util para autocompletado de rutas y comandos."
|
||||
tags: [core, string, prefix, autocomplete, common]
|
||||
tags: [core, string, prefix, autocomplete, common, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func MapConcurrent[T any, U any](xs []T, fn func(T) U, workers int) []U"
|
||||
description: "Aplica una funcion a cada elemento de un slice usando un pool de goroutines como workers. Los resultados preservan el orden original del slice de entrada."
|
||||
tags: [map, concurrent, parallel, generic]
|
||||
tags: [map, concurrent, parallel, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func MapSlice[T any, U any](xs []T, fn func(T) U) []U"
|
||||
description: "Transforma cada elemento de un slice aplicando una funcion. Retorna un nuevo slice del mismo tamaño con los resultados."
|
||||
tags: [slice, functional, generic, map, transform]
|
||||
tags: [slice, functional, generic, map, transform, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Memoize[K comparable, V any](fn func(K) V) func(K) V"
|
||||
description: "Cachea resultados de una funcion pura. Retorna una nueva funcion que almacena en un mapa interno los resultados ya calculados, evitando recalculos para la misma clave."
|
||||
tags: [cache, memoize, functional, generic]
|
||||
tags: [cache, memoize, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ParseVersion(content string) string"
|
||||
description: "Extrae el tag de version del primer campo de la primera linea de texto. Util para parsear archivos VERSION.txt o salida de comandos --version."
|
||||
tags: [core, version, parse, text, extract]
|
||||
tags: [core, version, parse, text, extract, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Partial2[A, B, C any](f func(A, B) C, a A) func(B) C"
|
||||
description: "Aplica parcialmente el primer argumento de una funcion de dos parametros."
|
||||
tags: [functional, generic, partial]
|
||||
tags: [functional, generic, partial, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Partition[T any](xs []T, pred func(T) bool) ([]T, []T)"
|
||||
description: "Divide un slice en dos segun un predicado. El primer slice contiene los elementos que cumplen el predicado, el segundo los que no. Se preserva el orden original."
|
||||
tags: [slice, partition, functional, generic]
|
||||
tags: [slice, partition, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Pipe2[A, B, C any](f1 func(A) B, f2 func(B) C) func(A) C"
|
||||
description: "Compone dos funciones de izquierda a derecha. pipe2(f, g)(x) = g(f(x))."
|
||||
tags: [functional, composition, generic, pipe]
|
||||
tags: [functional, composition, generic, pipe, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Pipe3[A, B, C, D any](f1 func(A) B, f2 func(B) C, f3 func(C) D) func(A) D"
|
||||
description: "Compone tres funciones de izquierda a derecha."
|
||||
tags: [functional, composition, generic, pipe]
|
||||
tags: [functional, composition, generic, pipe, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Pipeline[T any](fns ...func(T) T) func(T) T"
|
||||
description: "Compone funciones T -> T en secuencia de izquierda a derecha. Pipeline(f, g, h)(x) equivale a h(g(f(x))). Sin funciones retorna la identidad."
|
||||
tags: [pipeline, compose, functional, generic]
|
||||
tags: [pipeline, compose, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Reduce[T, U any](slice []T, initial U, f func(U, T) U) U"
|
||||
description: "Reduce un slice a un unico valor aplicando una funcion acumuladora de izquierda a derecha."
|
||||
tags: [slice, functional, generic, fold]
|
||||
tags: [slice, functional, generic, fold, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func RelOrFull(base, target string) string"
|
||||
description: "Retorna el path de target relativo a base. Si filepath.Rel falla, retorna target sin cambios. Util para mostrar paths cortos en UIs."
|
||||
tags: [core, path, relative, filepath, display]
|
||||
tags: [core, path, relative, filepath, display, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func RewriteRule(rule, jsonColumn string) string"
|
||||
description: "Reescribe campos bare en una expresion SQL a llamadas json_extract sobre una columna JSON de SQLite."
|
||||
tags: [sql, json, sqlite, rewrite, assertion]
|
||||
tags: [sql, json, sqlite, rewrite, assertion, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func SplitCommandAndArg(input string) (cmd, arg string, ok bool)"
|
||||
description: "Separa un string 'comando argumento' en sus dos partes por el primer espacio. Retorna ok=false si no hay espacio o el input esta vacio."
|
||||
tags: [core, string, split, command, parse, cli]
|
||||
tags: [core, string, split, command, parse, cli, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Take[T any](slice []T, n int) []T"
|
||||
description: "Devuelve los primeros n elementos de un slice."
|
||||
tags: [slice, functional, generic]
|
||||
tags: [slice, functional, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestCaptureLogs(t *testing.T) (*bytes.Buffer, func() []string)"
|
||||
description: "Redirige log.SetOutput a un buffer para capturar logs durante un test. Retorna el buffer y una funcion que restaura el writer original y devuelve las lineas capturadas como slice. Registra t.Cleanup automaticamente."
|
||||
tags: [testing, logging, capture, test_helper, log]
|
||||
tags: [testing, logging, capture, test_helper, log, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestDBSeed(t *testing.T, db *sql.DB, table string, rows []map[string]any) error"
|
||||
description: "Inserta filas en una tabla de forma dinamica usando una transaccion. Las columnas se infieren del primer mapa en orden alfabetico. Retorna error si la transaccion falla."
|
||||
tags: [testing, database, sqlite, seed, fixtures, test_helper]
|
||||
tags: [testing, database, sqlite, seed, fixtures, test_helper, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestDBSetup(t *testing.T, schema string) TestDB"
|
||||
description: "Abre una base de datos SQLite en memoria (:memory:), ejecuta el schema SQL proporcionado y registra t.Cleanup. Retorna TestDB listo para usar en tests."
|
||||
tags: [testing, database, sqlite, schema, test_helper]
|
||||
tags: [testing, database, sqlite, schema, test_helper, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [test_db_go_core]
|
||||
returns: [test_db_go_core]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestEnvSet(t *testing.T, vars map[string]string) func()"
|
||||
description: "Setea variables de entorno para la duracion del test y retorna una funcion restore. Las variables inexistentes se eliminan al restaurar. Registra t.Cleanup automaticamente."
|
||||
tags: [testing, env, environment, test_helper]
|
||||
tags: [testing, env, environment, test_helper, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestFixtureLoad(t *testing.T, path string, dst any) error"
|
||||
description: "Carga un archivo de fixture desde disco y lo deserializa en dst. Soporta JSON (stdlib). YAML es stub — retorna error informativo. Retorna error si el archivo no existe o el parsing falla."
|
||||
tags: [testing, fixtures, json, yaml, test_helper, io]
|
||||
tags: [testing, fixtures, json, yaml, test_helper, io, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func TestHTTPServer(t *testing.T, routes map[string]http.HandlerFunc) TestServer"
|
||||
description: "Crea un httptest.Server con un ServeMux configurado desde un mapa de rutas. Registra t.Cleanup automaticamente. Retorna TestServer con URL, cliente y funcion de cierre."
|
||||
tags: [testing, http, server, httptest, test_helper]
|
||||
tags: [testing, http, server, httptest, test_helper, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [test_server_go_core]
|
||||
returns: [test_server_go_core]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Uncurry2[A, B, C any](f func(A) func(B) C) func(A, B) C"
|
||||
description: "Transforma una funcion currificada en una funcion normal de dos argumentos."
|
||||
tags: [functional, generic, curry]
|
||||
tags: [functional, generic, curry, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Unique[T comparable](slice []T) []T"
|
||||
description: "Devuelve un slice con elementos unicos preservando el orden original."
|
||||
tags: [slice, functional, generic, dedup]
|
||||
tags: [slice, functional, generic, dedup, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ValidateStructFields(data map[string]any, rules map[string]string) (bool, []string)"
|
||||
description: "Valida campos de un map[string]any contra reglas declarativas tipo 'required,min=1,max=100,type=string'. Soporta required, type, min/max, minlen/maxlen, oneof, pattern. Pensado para validar metadata de entities en operations.db o resultados de queries sin definir structs Go. Acumula todos los errores."
|
||||
tags: [validation, map, rules, pure, core, operations]
|
||||
tags: [validation, map, rules, pure, core, operations, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Zip[T, U any](a []T, b []U) []Pair[T, U]"
|
||||
description: "Combina dos slices en un slice de pares elemento a elemento."
|
||||
tags: [slice, functional, generic, pair]
|
||||
tags: [slice, functional, generic, pair, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [pair_go_core]
|
||||
returns: [pair_go_core]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func DetectSQLInjection(input string) (isThreat bool, pattern string)"
|
||||
description: "Analiza un input en busca de patrones heuristicos de inyeccion SQL y devuelve si se detecto amenaza y el patron encontrado."
|
||||
tags: [cybersecurity, sqli, detection, security]
|
||||
tags: [cybersecurity, sqli, detection, security, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func EntropyShannon(data []byte) float64"
|
||||
description: "Calcula la entropia de Shannon de un slice de bytes. Retorna un valor entre 0 y 8 bits por byte."
|
||||
tags: [cybersecurity, entropy, shannon, analysis]
|
||||
tags: [cybersecurity, entropy, shannon, analysis, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ExtractIocs(text string, types []string) []IoC"
|
||||
description: "Port a Go de extract_iocs_py_cybersecurity. Extrae todos los IoCs (email, ip_address, domain, file_hash, crypto_wallet, cve_id, mac_address, phone_number) de un texto usando regex puro. Si types es nil corre todos los extractores; si tiene valores filtra solo esos tipos. Deduplica por (Type, Value) y elimina spans contenidos (ej. dominio dentro de un email). Retorna slice ordenada por offset."
|
||||
tags: [ioc, cybersecurity, regex, threat-intel, email, ip, domain, hash, wallet, cve, mac, phone]
|
||||
tags: [ioc, cybersecurity, regex, threat-intel, email, ip, domain, hash, wallet, cve, mac, phone, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [ioc_go_cybersecurity]
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ExtractURLs(text string) []string"
|
||||
description: "Extrae todas las URLs HTTP/HTTPS de un texto usando expresiones regulares."
|
||||
tags: [cybersecurity, extract, url, parse]
|
||||
tags: [cybersecurity, extract, url, parse, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func FetchHTTPHeaders(url string) (map[string][]string, error)"
|
||||
description: "Realiza una solicitud HTTP HEAD a una URL y devuelve los headers de la respuesta."
|
||||
tags: [cybersecurity, io, http, headers]
|
||||
tags: [cybersecurity, io, http, headers, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func HashMD5(data []byte) string"
|
||||
description: "Calcula el hash MD5 de un slice de bytes y devuelve el resultado como string hexadecimal."
|
||||
tags: [cybersecurity, hash, md5, crypto]
|
||||
tags: [cybersecurity, hash, md5, crypto, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func HashSHA256(data []byte) string"
|
||||
description: "Calcula el hash SHA-256 de un slice de bytes y devuelve el resultado como string hexadecimal."
|
||||
tags: [cybersecurity, hash, sha256, crypto]
|
||||
tags: [cybersecurity, hash, sha256, crypto, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func IPInRange(ip, cidr string) bool"
|
||||
description: "Verifica si una direccion IP se encuentra dentro de un rango CIDR dado."
|
||||
tags: [cybersecurity, network, cidr, check]
|
||||
tags: [cybersecurity, network, cidr, check, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func IsBase64(s string) bool"
|
||||
description: "Valida si un string es una cadena base64 valida segun el encoding estandar."
|
||||
tags: [cybersecurity, validation, base64, format]
|
||||
tags: [cybersecurity, validation, base64, format, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func IsHex(s string) bool"
|
||||
description: "Valida si un string es una cadena hexadecimal valida (longitud par, caracteres 0-9 a-f A-F)."
|
||||
tags: [cybersecurity, validation, hex, format]
|
||||
tags: [cybersecurity, validation, hex, format, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func JaccardSimilarity(a, b []string) float64"
|
||||
description: "Calcula la similitud de Jaccard entre dos conjuntos de tokens. Retorna un valor entre 0.0 y 1.0."
|
||||
tags: [cybersecurity, similarity, jaccard, tokens]
|
||||
tags: [cybersecurity, similarity, jaccard, tokens, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func LevenshteinDistance(a, b string) int"
|
||||
description: "Calcula la distancia de edicion de Levenshtein entre dos strings. Util para deteccion de typosquatting."
|
||||
tags: [cybersecurity, string, distance, typosquatting]
|
||||
tags: [cybersecurity, string, distance, typosquatting, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func LookupWhois(domain string) (string, error)"
|
||||
description: "Realiza una consulta WHOIS para un dominio conectandose al servidor whois.iana.org por TCP."
|
||||
tags: [cybersecurity, io, whois, recon]
|
||||
tags: [cybersecurity, io, whois, recon, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func NormalizeURL(rawURL string) string"
|
||||
description: "Normaliza una URL: convierte el host a minusculas, elimina fragmentos y remueve parametros de tracking comunes."
|
||||
tags: [cybersecurity, url, normalize, sanitize]
|
||||
tags: [cybersecurity, url, normalize, sanitize, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ParseIPCIDR(cidr string) (network string, broadcast string, hosts int, err error)"
|
||||
description: "Parsea una notacion CIDR IPv4 y devuelve la direccion de red, broadcast y cantidad de hosts usables."
|
||||
tags: [cybersecurity, network, cidr, parse]
|
||||
tags: [cybersecurity, network, cidr, parse, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func ResolveDNS(host string) ([]string, error)"
|
||||
description: "Resuelve un hostname a sus direcciones IP usando el resolver DNS del sistema."
|
||||
tags: [cybersecurity, io, dns, resolve]
|
||||
tags: [cybersecurity, io, dns, resolve, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func ScanPortTCP(host string, port int, timeoutMs int) (status string, banner string, err error)"
|
||||
description: "Escanea un puerto TCP en un host dado. Devuelve el estado (open/closed/filtered) y un banner si esta abierto."
|
||||
tags: [cybersecurity, io, port, scan]
|
||||
tags: [cybersecurity, io, port, scan, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Autocorrelation(data []float64, lag int) float64"
|
||||
description: "Calcula la autocorrelación de una serie temporal con un desfase (lag) dado, usando correlación de Pearson."
|
||||
tags: [datascience, statistics, autocorrelation, timeseries]
|
||||
tags: [datascience, statistics, autocorrelation, timeseries, pendiente-usar]
|
||||
uses_functions: [pearson_go_datascience]
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Clip(data []float64, min, max float64) []float64"
|
||||
description: "Recorta cada valor del slice para que quede dentro del rango [min, max]."
|
||||
tags: [datascience, clamp, clip, range]
|
||||
tags: [datascience, clamp, clip, range, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func DetectOutliers(data []float64, threshold float64) []bool"
|
||||
description: "Detecta outliers en un slice de float64 usando z-score. Devuelve true para valores cuyo |z-score| supera el umbral."
|
||||
tags: [datascience, statistics, outlier, anomaly]
|
||||
tags: [datascience, statistics, outlier, anomaly, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func DiffEntities(before, after []map[string]any, key string, ignoreFields []string) map[string]any"
|
||||
description: "Compara dos snapshots de entities y devuelve diferencias campo a campo. Detecta añadidas, eliminadas, modificadas e inalteradas. Ignora created_at y updated_at por defecto (pasar nil para usar defaults)."
|
||||
tags: [datascience, diff, entities, operations, snapshot, comparison]
|
||||
tags: [datascience, diff, entities, operations, snapshot, comparison, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func FetchDataFrame(dsn, query string) ([]map[string]any, error)"
|
||||
description: "Ejecuta una consulta SQL contra un DSN y retorna los resultados como slice de mapas columna-valor."
|
||||
tags: [datascience, io, bigquery, fetch]
|
||||
tags: [datascience, io, bigquery, fetch, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func FFT(data []float64) []complex128"
|
||||
description: "Calcula la Transformada Rápida de Fourier (FFT) usando el algoritmo Cooley-Tukey radix-2. Aplica zero-padding si la longitud no es potencia de 2."
|
||||
tags: [datascience, dsp, fft, fourier, frequency]
|
||||
tags: [datascience, dsp, fft, fourier, frequency, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func GroupBy[T any, K comparable](xs []T, keyFn func(T) K) map[K][]T"
|
||||
description: "Agrupa los elementos de un slice según una función clave, devolviendo un mapa de clave a slice de elementos."
|
||||
tags: [datascience, group, aggregate, generic]
|
||||
tags: [datascience, group, aggregate, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Histogram(data []float64, buckets int) []int"
|
||||
description: "Calcula las frecuencias de un slice de float64 distribuidas en un número dado de buckets equiespaciados."
|
||||
tags: [datascience, statistics, histogram, frequency]
|
||||
tags: [datascience, statistics, histogram, frequency, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Impute(data []float64) []float64"
|
||||
description: "Rellena valores NaN en un slice de float64 usando forward-fill, reemplazando cada NaN con el último valor válido anterior."
|
||||
tags: [datascience, impute, missing, fill]
|
||||
tags: [datascience, impute, missing, fill, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func LoadCSV(path string) ([]map[string]string, error)"
|
||||
description: "Carga un archivo CSV desde disco y lo retorna como slice de mapas columna-valor."
|
||||
tags: [datascience, io, csv, load]
|
||||
tags: [datascience, io, csv, load, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func LoadParquet(path string) ([]map[string]any, error)"
|
||||
description: "Carga un archivo Parquet desde disco y lo retorna como slice de mapas columna-valor."
|
||||
tags: [datascience, io, parquet, load]
|
||||
tags: [datascience, io, parquet, load, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "LorenzStep(s LorenzState, dt float64, p LorenzParams) LorenzState"
|
||||
description: "Paso del atractor de Lorenz (sistema caótico determinista). Integración Euler con parámetros configurables. Incluye LorenzSeries para generar N pasos."
|
||||
tags: [lorenz, chaos, attractor, simulation, math, dynamical-systems]
|
||||
tags: [lorenz, chaos, attractor, simulation, math, dynamical-systems, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func MetricsDrift(historical []int64, current int64, percentile float64) (drift float64, baseline int64)"
|
||||
description: "Calcula la deriva relativa de una medicion actual respecto a una linea base historica. La linea base se obtiene como el percentil indicado del historico. drift = (current - baseline) / baseline. Retorna drift=0, baseline=0 si el historico esta vacio o la linea base es cero."
|
||||
tags: [metrics, drift, percentile, statistics, monitoring, baseline]
|
||||
tags: [metrics, drift, percentile, statistics, monitoring, baseline, pendiente-usar]
|
||||
uses_functions: [percentile_int64_go_datascience]
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func MinMaxScale(data []float64) []float64"
|
||||
description: "Escala los valores de un slice al rango [0, 1] usando normalización min-max."
|
||||
tags: [datascience, statistics, normalize, scale]
|
||||
tags: [datascience, statistics, normalize, scale, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Pivot(rows []map[string]any, index, columns, values, agg string) []map[string]any"
|
||||
description: "Pivot table sin dependencias. Agrupa por index, expande valores unicos de columns como nuevas columnas y agrega values con la funcion indicada (sum, count, mean, min, max, first, last). Valores faltantes se rellenan con 0."
|
||||
tags: [datascience, tabular, pivot, transform, aggregation, go]
|
||||
tags: [datascience, tabular, pivot, transform, aggregation, go, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func RollingWindow[T any](xs []T, size int) [][]T"
|
||||
description: "Genera ventanas deslizantes de tamaño fijo sobre un slice genérico."
|
||||
tags: [datascience, window, rolling, sliding, generic]
|
||||
tags: [datascience, window, rolling, sliding, generic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func Standardize(data []float64) []float64"
|
||||
description: "Aplica Z-score normalización a un slice de float64, transformando cada valor a (x - media) / desviación estándar."
|
||||
tags: [datascience, statistics, normalize, zscore]
|
||||
tags: [datascience, statistics, normalize, zscore, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func ZipSlices(as, bs []float64) [][2]float64"
|
||||
description: "Combina dos slices de float64 en un slice de pares [2]float64, truncando al más corto."
|
||||
tags: [datascience, zip, combine, pair]
|
||||
tags: [datascience, zip, combine, pair, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func AnnualizedVolatility(returns []float64, periodsPerYear float64) float64"
|
||||
description: "Calcula la volatilidad anualizada a partir de una serie de retornos y la frecuencia de los periodos."
|
||||
tags: [finance, volatility, risk, annualized]
|
||||
tags: [finance, volatility, risk, annualized, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func BollingerBands(data []float64, period int, numStdDev float64) (upper, middle, lower []float64)"
|
||||
description: "Calcula las bandas de Bollinger (upper, middle, lower) para una serie de precios."
|
||||
tags: [finance, indicator, bollinger, bands]
|
||||
tags: [finance, indicator, bollinger, bands, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [bollinger_result_go_finance]
|
||||
returns: [bollinger_result_go_finance]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func EMA(data []float64, period int) []float64"
|
||||
description: "Calcula la media movil exponencial (EMA) sobre una serie de datos con un periodo dado."
|
||||
tags: [finance, indicator, ema, moving-average]
|
||||
tags: [finance, indicator, ema, moving-average, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func FetchOHLCV(symbol, interval string) ([][]float64, error)"
|
||||
description: "Obtiene datos OHLCV de un exchange para un simbolo e intervalo dados."
|
||||
tags: [finance, io, exchange, fetch]
|
||||
tags: [finance, io, exchange, fetch, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [ohlcv_go_finance]
|
||||
returns: [ohlcv_go_finance]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func LoadOHLCVFromDuckDB(dbPath, query string) ([][]float64, error)"
|
||||
description: "Carga datos OHLCV ejecutando una query SQL en una base de datos DuckDB."
|
||||
tags: [finance, io, duckdb, load]
|
||||
tags: [finance, io, duckdb, load, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [ohlcv_go_finance]
|
||||
returns: [ohlcv_go_finance]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func LogReturn(priceStart, priceEnd float64) float64"
|
||||
description: "Calcula el retorno logaritmico entre un precio inicial y un precio final."
|
||||
tags: [finance, return, logarithmic, atomic]
|
||||
tags: [finance, return, logarithmic, atomic, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func MaxDrawdown(values []float64) (maxDD float64, start, end int)"
|
||||
description: "Calcula el maximo drawdown de una curva de equity, retornando la magnitud y los indices pico-valle."
|
||||
tags: [finance, drawdown, risk, metric]
|
||||
tags: [finance, drawdown, risk, metric, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [drawdown_result_go_finance]
|
||||
returns: [drawdown_result_go_finance]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func NormalizeOHLCV(open, high, low, close []float64, factor float64) ([]float64, []float64, []float64, []float64)"
|
||||
description: "Ajusta slices de precios OHLCV multiplicando cada valor por un factor dado."
|
||||
tags: [finance, ohlcv, normalize, adjust]
|
||||
tags: [finance, ohlcv, normalize, adjust, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [ohlcv_go_finance]
|
||||
returns: [ohlcv_go_finance]
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func RSI(data []float64, period int) []float64"
|
||||
description: "Calcula el Relative Strength Index (RSI) usando suavizado de Wilder."
|
||||
tags: [finance, indicator, rsi, momentum]
|
||||
tags: [finance, indicator, rsi, momentum, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func SharpeRatio(returns []float64, riskFreeRate float64, periodsPerYear float64) float64"
|
||||
description: "Calcula el ratio de Sharpe anualizado a partir de retornos, tasa libre de riesgo y frecuencia."
|
||||
tags: [finance, sharpe, risk, ratio]
|
||||
tags: [finance, sharpe, risk, ratio, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "func SMA(data []float64, period int) []float64"
|
||||
description: "Calcula la media movil simple (SMA) sobre una serie de datos con un periodo dado."
|
||||
tags: [finance, indicator, sma, moving-average]
|
||||
tags: [finance, indicator, sma, moving-average, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
|
||||
@@ -7,7 +7,7 @@ version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func StreamTicks(symbol string) (<-chan [2]float64, error)"
|
||||
description: "Abre un stream de ticks en tiempo real para un simbolo via websocket."
|
||||
tags: [finance, io, stream, realtime]
|
||||
tags: [finance, io, stream, realtime, pendiente-usar]
|
||||
uses_functions: []
|
||||
uses_types: [tick_go_finance]
|
||||
returns: [tick_go_finance]
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user