codesamplex

サンプル

Expose that method-aware mux patterns in net/http silently change which handler matches.

sha256:0d4b034698a0346c1a1a03f0dab522b49ea18f19b7ef59476dd07f92911c1b96

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Expose that method-aware mux patterns in net/http silently change which handler matches. HOW
パッケージ
net/http go1.26.5
環境
go
作成日
2026-08-16T13:07:01Z

よくある思い込み

A method token in a ServeMux pattern, such as `GET /resource`, is just part of the path and does not affect routing.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート