Created
April 22, 2020 13:15
-
-
Save CharlyCst/c6cef336889c37d959701c8f6287a683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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