https://github.com/anikhasibul/gocgi
Library for running golang and php (cgi) in a single port/service/server!
https://github.com/anikhasibul/gocgi
cgi cgi-server golang php
Last synced: 10 months ago
JSON representation
Library for running golang and php (cgi) in a single port/service/server!
- Host: GitHub
- URL: https://github.com/anikhasibul/gocgi
- Owner: AnikHasibul
- Created: 2019-01-20T19:04:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-20T19:04:42.000Z (about 7 years ago)
- Last Synced: 2025-01-24T05:25:11.929Z (about 1 year ago)
- Topics: cgi, cgi-server, golang, php
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocgi
usage:
import (
"net/http"
"github.com/anikhasibul/gocgi"
)
func main() {
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
gocgi.CGIfy(w, r, "php-cgi", "./server.php")
})
http.ListenAndServe(":8080", nil)
}
server.php: