Skip to content

Use cgi.Serve#1

Open
G-OD wants to merge 3 commits intofuncimp:masterfrom
G-OD:cgi_serve
Open

Use cgi.Serve#1
G-OD wants to merge 3 commits intofuncimp:masterfrom
G-OD:cgi_serve

Conversation

@G-OD
Copy link
Copy Markdown

@G-OD G-OD commented Dec 25, 2024

This is a completely pointless PR but I thought I'd make it to demonstrate Go's functionality when it comes to CGI scripts. It has a pretty nifty cgi.Serve function where you can use to use a standard HTTP handler. This allows you to not worry about passing headers yourself and lets Go handle the proxying needed to make the CGI work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant