func (d *Dinghy) StatusHandler() func(w http.ResponseWriter, r *http.Request) {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.Method != "GET" {
			http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
			return
		}
		fmt.Fprintln(w, d.State)
	}
}
// StatusHandler (GET) returns the nodes full state.
StatusHandler (GET) returns the nodes full state.
// StatusHandler ( GET ) returns the nodes full state .
func (d *Dinghy) StatusHandler() func(w http.ResponseWriter, r *http.Request) {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.Method != "GET" {
			http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
			return
		}
		fmt.Fprintln(w, d.State)
	}
}
func ( d * Dinghy ) StatusHandler ( ) func ( w http . ResponseWriter , r * http . Request ) { return func ( w http . ResponseWriter , r * http . Request ) { if r . Method != " " { http . Error ( w , http . StatusText ( http . StatusMethodNotAllowed ) , http . StatusMethodNotAllowed ) return } fmt . Fprintln ( w , d . State ) } }
StatusHandler (GET) returns the nodes full state.
StatusHandler ( GET ) returns the nodes full state .