func (d *Dinghy) IDHandler() 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.ID())
	}
}
// IDHandler (GET) returns the nodes id.
IDHandler (GET) returns the nodes id.
// IDHandler ( GET ) returns the nodes id .
func (d *Dinghy) IDHandler() 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.ID())
	}
}
func ( d * Dinghy ) IDHandler ( ) 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 . ID ( ) ) } }
IDHandler (GET) returns the nodes id.
IDHandler ( GET ) returns the nodes id .