为了账号安全,请及时绑定邮箱和手机立即绑定

golang 将复杂的字符串解析为 json

golang 将复杂的字符串解析为 json

Go
慕慕森 2021-10-04 16:40:01
我正在尝试将来自服务器的字符串响应解析为 JSON 格式。我是 golang 的新手,需要一些帮助来理解实现解决方案的正确方法。这是我从服务器得到的响应 -Test 1: local 1.1.1.1  remote 2.2.2.2  state GOODTest ID: 2.2.2.2Test Type: ABDAdmin State: STARTDFD: DisabledAddress family: ipv4-unicast  Options: < Refresh >  Updates Received: 0,  Updates Sent: 7Data Received: 853,  Data Sent: 860Time since last received update: n/aNumber of transitions to GOOD: 1Time since last entering GOOD state: 22384 secondsRetry Interval: 120 secondsHold Time: 90 seconds,  Keep Test Time: 30 secondsTest 2: local 1.1.1.1  remote 2.2.2.2  state GOODTest ID: 2.2.2.2Test Type: ABDAdmin State: STARTDFD: DisabledAddress family: ipv4-unicast  Options: < Refresh >  Updates Received: 0,  Updates Sent: 7Data Received: 853,  Data Sent: 860Time since last received update: n/aNumber of transitions to GOOD: 1Time since last entering GOOD state: 22384 secondsRetry Interval: 120 secondsHold Time: 90 seconds,  Keep Test Time: 30 secondsTest 3: local 1.1.1.1  remote 2.2.2.2  state GOODTest ID: 2.2.2.2Test Type: ABDAdmin State: STARTDFD: DisabledAddress family: ipv4-unicast  Options: < Refresh >  Updates Received: 0,  Updates Sent: 7Data Received: 853,  Data Sent: 860Time since last received update: n/aNumber of transitions to GOOD: 1Time since last entering GOOD state: 22384 secondsRetry Interval: 120 secondsHold Time: 90 seconds,  Keep Test Time: 30 seconds谢谢。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 344 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信