21 lines
373 B
Go
21 lines
373 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
var (
|
|
port = flag.String("port", "9090", "HTTP port to listen on")
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
http.ListenAndServe(":"+*port, http.HandlerFunc(handle))
|
|
}
|
|
|
|
func handle(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintln(w, "Hello garukun, it's me xena. Hire me and I can make something like this for vungle.")
|
|
}
|