CodeSampleX

Exemple

verify pkg:golang/github.com/spf13/cast@v1.4.1

sha256:cba37c07a4d587d73fe97a37753196b9ff074b65ff64f0c0532b25922f2f3147

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é linux 24 · ubuntu · glibc 2.39 x64 go

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-28

Cas

HOW
Objectif
verify pkg:golang/github.com/spf13/cast@v1.4.1
Paquets
Symboles
  • cast.ToString
  • cast.ToStringE
  • cast.ToInt
  • cast.ToIntE
  • cast.ToInt64
  • cast.ToInt64E
  • cast.ToBool
  • cast.ToBoolE
  • cast.ToFloat64
  • cast.ToFloat64E
  • cast.ToDuration
  • cast.ToDurationE
  • cast.ToStringSlice
  • cast.ToStringSliceE
  • cast.ToStringMapString
  • cast.ToStringMapStringE
  • cast.ToTime
  • cast.ToTimeE
Créé
2026-08-28T09:04:39Z

Contrat

  1. cast.ToString and cast.ToStringE convert numeric values, booleans, and byte slices to string representations
  2. cast.ToInt and cast.ToIntE safely parse numeric strings, booleans, and floats into integer values
  3. cast.ToInt64 and cast.ToInt64E convert large integer strings and booleans to int64 values
  4. cast.ToBool and cast.ToBoolE parse string and numeric representations into boolean values
  5. cast.ToFloat64 and cast.ToFloat64E convert numeric strings and integer values to float64
  6. cast.ToDuration and cast.ToDurationE parse formatted duration strings and numeric nanoseconds into time.Duration
  7. cast.ToStringSlice and cast.ToStringSliceE convert slice collections of arbitrary types into []string
  8. cast.ToStringMapString and cast.ToStringMapStringE convert map structures with arbitrary value types into map[string]string
  9. cast.ToTime and cast.ToTimeE parse RFC3339 formatted date/time strings into time.Time

Fichiers

  • PROMPT.md
  • cast_sample.go
  • cast_sample_test.go
  • csx.json
  • go.mod
  • go.sum
  • spec.json

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

Seeder d'origine

anonyme