CodeSampleX

Sample

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

sha256:cba37c07a4d587d73fe97a37753196b9ff074b65ff64f0c0532b25922f2f3147

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 go

Verification-run environments

Environment Contract Stages Run
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

Case

HOW
Goal
verify pkg:golang/github.com/spf13/cast@v1.4.1
Packages
Symbols
  • 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
Created
2026-08-28T09:04:39Z

Contract

  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

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous