main.go 464 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. import (
  3. "fmt"
  4. "log"
  5. "net/http"
  6. )
  7. func handler(w http.ResponseWriter, r *http.Request) {
  8. fmt.Println(r.URL.RawQuery)
  9. fmt.Fprintf(w, `
  10. ## .
  11. ## ## ## ==
  12. ## ## ## ## ## ===
  13. /"""""""""""""""""\___/ ===
  14. { / ===-
  15. \______ O __/
  16. \ \ __/
  17. \____\_______/
  18. Hello from Docker!
  19. `)
  20. }
  21. func main() {
  22. http.HandleFunc("/", handler)
  23. log.Fatal(http.ListenAndServe(":80", nil))
  24. }