archetype-resources.hello.go Maven / Gradle / Ivy
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Greetings to the world Hello from the fabric8 Golang example
\n")
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy