Skip to content

Instantly share code, notes, and snippets.

@CharlyCst
Created April 12, 2020 15:42
Show Gist options
  • Save CharlyCst/aaf7e65872324aa7998ee91d621892ed to your computer and use it in GitHub Desktop.
Save CharlyCst/aaf7e65872324aa7998ee91d621892ed to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
lb "gosb"
)
func init() {
lb.Initialize(lb.MPK_BACKEND)
}
func hello(w http.ResponseWriter, req *http.Request) {
sandbox["", ""] () {
fmt.Fprintf(w, "hello\n")
}()
}
func main() {
http.HandleFunc("/hello", hello)
http.ListenAndServe(":8090", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment