GO Simple HTTP Server demo

 GO Simple HTTP Server demo

package main

import (

func PathHandler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintln(w, "hello, wellcome to go http world")

func main() {
    http.HandleFunc("/", PathHandler)
    http.ListenAndServe("", nil)


Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example