From 6a4d17d79a3226fd91f59179ec803e0313d2608c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=AB=E5=AD=90=E6=A8=B1=E6=A1=83?= Date: Sun, 26 Mar 2023 22:51:38 +0800 Subject: [PATCH] add http.ResponseController type alias (#2713) Co-authored-by: czyt --- transport/http/codec_go1.20.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 transport/http/codec_go1.20.go diff --git a/transport/http/codec_go1.20.go b/transport/http/codec_go1.20.go new file mode 100644 index 000000000..2df5ec92b --- /dev/null +++ b/transport/http/codec_go1.20.go @@ -0,0 +1,10 @@ +//go:build go1.20 +// +build go1.20 + +package http + +import "net/http" + +// ResponseController is type net/http.ResponseController which was added in Go 1.20. + +type ResponseController = http.ResponseController