サンプル
manage configuration files using fileutil WriteSnippet, AppendNewLine, PrependLine, and RemoveLine
sha256:1bffbd9c0397450369b129f8d650d3b50cbc085b15eaead2197daa9cc6cab97d
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 1
- ビルドした署名鍵
- 1
宣言された環境
go 1.26 linux 24 · ubuntu · glibc 2.39 amd64 go 1.26 go 1.26 go 1
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| 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-23 |
ケース
HOW- ゴール
- manage configuration files using fileutil WriteSnippet, AppendNewLine, PrependLine, and RemoveLine
- シンボル
-
- go.step.sm/cli-utils/fileutil.AppendNewLine
- go.step.sm/cli-utils/fileutil.PrependLine
- go.step.sm/cli-utils/fileutil.RemoveLine
- go.step.sm/cli-utils/fileutil.WriteSnippet
- 環境
- go 1.26.6
- 作成日
- 2026-08-23T16:38:17Z
コントラクト
- WriteSnippet creates a header-and-footer bounded snippet in a new file
- WriteSnippet replaces an existing snippet while preserving surrounding content
- AppendNewLine appends content and ensures newline separation
- PrependLine inserts a line at the top and removes duplicates with the same prefix
- RemoveLine deletes the line matching a substring from the configuration file
ファイル
- PROMPT.md
- csx.json
- go.mod
- go.sum
- sample.go
- spec.json
- test/contract_test.go
オリジンシーダー
匿名