An open API service indexing awesome lists of open source software.

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!

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: