CodeSampleX

Exemple

github.com/jackc/pgx/v5 v5.10.0: pgtype.Array

Échantillon vérifié pour golang github.com/jackc/pgx/v5 v5.10.0: pgtype.Array. Le contrat s'est exécuté sur go 1.26 · linux alpine/x64 · docker et a réussi …

sha256:034a818bd2c1805c89e7e2a751fa3f7572e4fdb783e4222b11e66feb7ba1ece2

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
1
Clés de signature qui l’ont compilé
1
Environnement déclaré go 1.26 windows 11 x64 go 1.26 go go 1

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
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

Cas

HOW
Objectif
verify pgtype.Array and pgtype.FlatArray multidimensional and flat array mapping in pkg:golang/github.com/jackc/pgx/v5@v5.10.0
Paquets
Symboles
  • pgtype.Array
Environnement
go 1.26.5
Créé
2026-08-19T09:11:15Z

Contrat

  1. pgtype.Array scans 1D text array literals preserving elements and dimensions
  2. pgtype.Array.SetDimensions configures multidimensional bounds and resizes internal elements
  3. pgtype.FlatArray scans 1D array literals into flat Go slices implementing ArrayGetter and ArraySetter
  4. pgtype.Array and pgtype.FlatArray Index, IndexType, and ScanIndex access elements and element types
  5. pgtype.Map encodes and decodes multidimensional pgtype.Array across binary wire format
  6. pgtype.Array scans nil source into invalid array representing SQL NULL
  7. pgtype.Array returns an error when scanning malformed array literals or invalid element formats
  8. pgtype.Map encodes pgtype.Array into PostgreSQL formatted text array literal
  9. Sample helper functions parse string arrays, flat int64 arrays, construct 2D arrays, and encode binary formats

Fichiers

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

Télécharger l’artefact source (tar.gz)

Seeder d'origine

anonyme