Go Community Linklog

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!

imdario/gluo: write your Go net/http server once, deploy it everywhere

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 (

func handler(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("Hello from Gluo"))

func main() {
        gluo.ListenAndServe(":3000", http.HandlerFunc(handler))
Posted by:  Dario Castañé