Added rapps prototype
Change-Id: Ifa7a78d3391dc74ba8fdc304bea47b76429d80c4
diff --git a/rapps/rapps-hello-world.go b/rapps/rapps-hello-world.go
new file mode 100644
index 0000000..dc6e707
--- /dev/null
+++ b/rapps/rapps-hello-world.go
@@ -0,0 +1,23 @@
+package main
+
+import (
+ "net/http"
+)
+
+// create a handler struct
+type HttpHandler struct{}
+
+// implement `ServeHTTP` method on `HttpHandler` struct
+func (h HttpHandler) ServeHTTP(res http.ResponseWriter, req *http.Request) {
+ // create response binary data
+ data := []byte("Hello World!") // slice of bytes
+ // write `data` to response
+ res.Write(data)
+}
+
+func main() {
+ // create a new handler
+ handler := HttpHandler{}
+ // listen and serve
+ http.ListenAndServe(":9000", handler)
+}