Created
April 12, 2020 15:42
-
-
Save CharlyCst/aaf7e65872324aa7998ee91d621892ed 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 ( | |
"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