CodeSampleX

サンプル

verify github.com/francoispqt/gojay.Encoder in pkg:golang/github.com/francoispqt/gojay@v1.2.13

sha256:db98aa6f098f65e100d9848bcf38fbf00688a6fc5ebd9ff44ecd5fb79d44a296

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 linux 24 · ubuntu · glibc 2.39 amd64 go go

検証実行環境

環境 コントラクト ステージ 実行日
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-26

ケース

HOW
ゴール
verify github.com/francoispqt/gojay.Encoder in pkg:golang/github.com/francoispqt/gojay@v1.2.13
パッケージ
シンボル
  • github.com/francoispqt/gojay.Encoder
作成日
2026-08-26T01:34:44Z

コントラクト

  1. gojay.NewEncoder serializes Go structs implementing MarshalerJSONObject with typed field encoding methods including IntKey, StringKey, BoolKey, Float64Key, StringKeyOmitEmpty, and ArrayKey.
  2. gojay.Encoder serializes slice collections implementing MarshalerJSONArray by iteratively encoding elements with type-specific methods like String.
  3. gojay.BorrowEncoder retrieves an encoder instance from the internal pool and Release returns it to minimize heap allocations.
  4. gojay.Encoder directly encodes scalar primitive values including strings, integers, and booleans using EncodeString, EncodeInt, and EncodeBool.

ファイル

  • PROMPT.md
  • csx.json
  • encoder.go
  • go.mod
  • go.sum
  • spec.json
  • test/contract_test.go

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名