Go server 資訊輸出方式

錯誤訊息輸出

   http.Error(w, err.Error(), http.StatusInternalServerError)

輸出 json 訊息

w.WriteHeader(http.StatusInternalServerError)
json.NewEncoder(2).Encode(jsonMsg)