CodeSampleX

Exemplo

verify github.com/jackc/pgx/v5.RowToStructByPos in pkg:golang/github.com/jackc/pgx/v5@v5.10.0

sha256:9b8a401b226bd5b8fdd47f94005c7949e6ce12387e01902ea495cc51eea09eaf

Estado de publicação. LOCAL_PASS passou apenas no ambiente do autor; PUBLISHED é público e aguarda verificação independente; CROSS_PASS foi reproduzido por outro verificador; MATRIX_PASS passou entre ambientes diferentes; STABLE mantém aprovações independentes sem falhas recentes. Força da evidência. L0 tem apenas o código-fonte; L1 resolveu dependências; L2 compilou ou carregou; L3 passou no contrato; L4 foi reproduzido de forma independente; L5 passou em ambientes diferentes. MIT-0

Evidência de execução

O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.

Base da evidência
Verificação cruzada independente
Recibos de verificação
1
Nível de verificação
L4_CROSS_PASS
Ambiente declarado windows 11 x64 go

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-19

Caso

HOW
Objetivo
verify github.com/jackc/pgx/v5.RowToStructByPos in pkg:golang/github.com/jackc/pgx/v5@v5.10.0
Pacotes
Símbolos
  • RowToStructByPos
Criado
2026-08-18T23:30:02Z

Contrato

  1. pgx.RowToStructByPos maps row columns to struct fields positionally in declaration order
  2. pgx.RowToStructByPos ignores unexported struct fields when mapping positionally
  3. pgx.RowToAddrOfStructByPos returns a pointer to struct with positionally mapped field values
  4. pgx.CollectRows with RowToStructByPos collects multiple rows into struct slices and closes rows upon completion
  5. pgx.CollectOneRow and pgx.CollectExactlyOneRow work with RowToStructByPos and return ErrNoRows and ErrTooManyRows as expected
  6. sample helper functions provide positional struct row scanning and collection utilities

Arquivos

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • sample.go
  • spec.json
  • test/contract.go

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo