瀏覽代碼

omitdefault

luis 7 年之前
父節點
當前提交
0727ac7dab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      clientctx.go

+ 1 - 1
clientctx.go

@@ -32,7 +32,7 @@ type CallObj struct {
 	// Payload
 	Params   []interface{} `json:"params"`
 	Response interface{}   `json:"response"`
-	Error    string        `json:"error"`
+	Error    string        `json:"error,omitempty"`
 }
 
 // DataObj common structure for dymanic json object