CodeSampleX

サンプル

google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5: attribute_context.AttributeContext

検証済みサンプル — golang google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5: attribute_context.AttributeContext. go 1.26 · linux…

sha256:e696cdf4c2dfbb0744da719268583c4d34f13ba31f6de77fb7d51446035e68a9

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

実行証拠

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

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 go linux 24 · ubuntu · glibc 2.39 x64 go 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-30

ケース

HOW
ゴール
verify google.golang.org/genproto/googleapis/rpc/context/attribute_context.AttributeContext in pkg:golang/google.golang.org/genproto/googleapis/rpc@v0.0.0-20260825221802-da73d73af1c5
パッケージ
シンボル
  • google.golang.org/genproto/googleapis/rpc/context/attribute_context.AttributeContext
環境
go
作成日
2026-08-30T14:34:31Z

コントラクト

  1. AttributeContext fields Request, Response, Origin, Source, Destination, and Resource store structured RPC metadata accessible via getters.
  2. AttributeContext and its nested fields return safe nil or empty values when called on nil receivers.
  3. AttributeContext serializes to and deserializes from protocol buffer binary format preserving nested Request, Response, and Peer details.
  4. AttributeContext.Reset clears all fields and resets the message back to zero state.
  5. AttributeContext_Request stores Method, Path, Host, Headers, and Auth metadata accurately.

ファイル

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

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

オリジンシーダー

匿名