diff options
| author | cui fliter <imcusg@gmail.com> | 2023-11-06 22:58:32 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-01-10 03:29:50 +0000 |
| commit | 1d45a7ef560a76318ed59dfdb178cecd58caf948 (patch) | |
| tree | 414cefb1ad932567af40cb3ab7781bed7cc76182 /src/net/http/cgi | |
| parent | dcbe77246922fe7ef41f07df228f47a37803f360 (diff) | |
| download | go-1d45a7ef560a76318ed59dfdb178cecd58caf948.tar.xz | |
net: add available godoc link
Change-Id: Ib7c4baf0247c421954aedabfbb6a6af8a08a8936
Reviewed-on: https://go-review.googlesource.com/c/go/+/540021
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/net/http/cgi')
| -rw-r--r-- | src/net/http/cgi/child.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/cgi/child.go b/src/net/http/cgi/child.go index 1411f0b8e8..e29fe20d7d 100644 --- a/src/net/http/cgi/child.go +++ b/src/net/http/cgi/child.go @@ -46,7 +46,7 @@ func envMap(env []string) map[string]string { return m } -// RequestFromMap creates an http.Request from CGI variables. +// RequestFromMap creates an [http.Request] from CGI variables. // The returned Request's Body field is not populated. func RequestFromMap(params map[string]string) (*http.Request, error) { r := new(http.Request) @@ -138,10 +138,10 @@ func RequestFromMap(params map[string]string) (*http.Request, error) { return r, nil } -// Serve executes the provided Handler on the currently active CGI +// Serve executes the provided [Handler] on the currently active CGI // request, if any. If there's no current CGI environment // an error is returned. The provided handler may be nil to use -// http.DefaultServeMux. +// [http.DefaultServeMux]. func Serve(handler http.Handler) error { req, err := Request() if err != nil { |
