12345678910111213141516 |
- package main
- import (
- "fmt"
- "net/http"
- )
- func handler(w http.ResponseWriter, r *http.Request) {
- fmt.Fprintln(w, "Hello world! This is a test minimal Go application that uses 'FROM scratch', and thus only takes 6MB. ")
- }
- func main() {
- fmt.Println("Listening on port 8080.....")
- http.HandleFunc("/", handler)
- http.ListenAndServe(":8080", nil)
- }
|