Skip to content

Instantly share code, notes, and snippets.

@CharlyCst
Created April 22, 2020 13:15
Show Gist options
  • Save CharlyCst/c6cef336889c37d959701c8f6287a683 to your computer and use it in GitHub Desktop.
Save CharlyCst/c6cef336889c37d959701c8f6287a683 to your computer and use it in GitHub Desktop.
package main
import (
"net/http"
lb "gosb"
)
func init() {
lb.Initialize(lb.MPK_BACKEND)
}
func main() {
hello := sandbox["", ""] (w http.ResponseWriter, req *http.Request) {
w.Write([]byte("hello\n"))
}
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