Micro-service for file storage and processing written in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
266 B

package main
import (
"net/http"
"github.com/gorilla/mux"
)
func IndexHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("hello world!"))
}
func main() {
r := mux.NewRouter()
r.HandleFunc("/", IndexHandler)
http.ListenAndServe(":8000", r)
}