Commit 070e0679 authored by Remy Jourde's avatar Remy Jourde
Browse files

Ready to be deployed on Heroku

parent b6755044
Loading
Loading
Loading
Loading

Procfile

0 → 100644
+1 −0
Original line number Diff line number Diff line
web: gree-albatros

main.go

0 → 100644
+19 −0
Original line number Diff line number Diff line
package main

import (
    "fmt"
    "net/http"
)

func main() {
    http.HandleFunc("/", hello)
    fmt.Println("listening...")
    err := http.ListenAndServe(":5000", nil)
    if err != nil {
      panic(err)
    }
}

func hello(res http.ResponseWriter, req *http.Request) {
    fmt.Fprintln(res, "hello, green-albatros")
}