mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
21 lines
330 B
Go
21 lines
330 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", hello)
|
|
fmt.Println("listening...")
|
|
err := http.ListenAndServe(":"+os.Getenv("PORT"), nil)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func hello(res http.ResponseWriter, req *http.Request) {
|
|
fmt.Fprintln(res, "go")
|
|
}
|