From 7d7c9fc8d5105c068403c76246e78944459a0d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 30 Jun 2022 18:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E5=88=92=E5=93=8D=E5=BA=94=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- result.go | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 result.go diff --git a/result.go b/result.go new file mode 100644 index 0000000..32824ee --- /dev/null +++ b/result.go @@ -0,0 +1,51 @@ +// Package rpc ... +// +// Description : rpc ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2022-06-30 18:33 +package rpc + +// parseResponseBody 解析响应body, 支持 json + xml + ini + yaml +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 18:36 2022/6/30 +func parseResponseBody(body []byte, receiver interface{}) error { + return nil +} + +type result struct { +} + +// ParseJSON 解析JSON数据 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 18:34 2022/6/30 +func (r *result) ParseJSON(inputContent []byte, receiver interface{}) error { + return nil +} + +// ParseYaml 解析yaml数据 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 18:34 2022/6/30 +func (r *result) ParseYaml(inputContent []byte, receiver interface{}) error { + return nil +} + +// ParseXml 解析xml数据 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 18:35 2022/6/30 +func (r *result) ParseXml(inputContent []byte, receiver interface{}) error { + return nil +} + +func (r *result) ParseIni(inputContent []byte, receiver interface{}) error { + return nil +}