Made a library? Written a blog post? Found a useful tutorial? Share it with the Go community here or just enjoy what everyone else has found!
Write your HTTP application in Go once, deploy it everywhere (on-premise & AWS Lambda supported)
Just call gluo.ListenAndServe
instead of http.ListenAndServe
.
package main
import (
"github.com/imdario/gluo"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello from Gluo"))
}
func main() {
gluo.ListenAndServe(":3000", http.HandlerFunc(handler))
}