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

3 years ago
  1. package main
  2. import (
  3. "net/http"
  4. "github.com/gorilla/mux"
  5. )
  6. func IndexHandler(w http.ResponseWriter, r *http.Request) {
  7. w.Write([]byte("hello world!"))
  8. }
  9. func main() {
  10. r := mux.NewRouter()
  11. r.HandleFunc("/", IndexHandler)
  12. http.ListenAndServe(":8000", r)
  13. }