CodeSampleX

Sample

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

sha256:90db890a527aab17441d5ab3196e06544ca5570263d500a749559f8ace6ee5da

Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures. Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments. MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basis
Independent cross-verification
Verification receipts
1
Verification level
L4_CROSS_PASS
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@1
2026-08-21

Case

HOW
Goal
verify pkg:golang/github.com/spf13/cast@v1.7.0
Packages
Symbols
  • cast.ToString
  • cast.ToStringE
  • cast.ToInt
  • cast.ToIntE
  • cast.ToBool
  • cast.ToBoolE
  • cast.ToDuration
  • cast.ToDurationE
  • cast.ToStringSlice
  • cast.ToStringSliceE
  • cast.ToStringMapString
  • cast.ToStringMapStringE
Created
2026-08-21T00:06:31Z

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.ToBool and cast.ToBoolE parse string and numeric representations into boolean values
  4. cast.ToDuration and cast.ToDurationE parse formatted duration strings and numeric nanoseconds into time.Duration
  5. cast.ToStringSlice and cast.ToStringSliceE convert slice collections of arbitrary types into []string
  6. cast.ToStringMapString and cast.ToStringMapStringE convert map structures with arbitrary value types into map[string]string

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