<p>Is this comment true .
"Go cannot check for validity of any document against a schema"
Is there a library to do this?</p>
<hr/>**评论:**<br/><br/>T3hDot: <pre><p>I don't know off the top of my head, but that's a silly statement to make. Of course Go CAN do it. It's just a story of whether or not someone's written the code yet.</p></pre>antigiven: <pre><p>Context: <a href="https://jan.newmarch.name/go/xml/chapter-xml.html" rel="nofollow">https://jan.newmarch.name/go/xml/chapter-xml.html</a></p>
<p>They're talking about the encoding/xml package. And yes it's true that the encoding/xml package does not do that.</p>
<p>Searching godoc.org reveals one package: <a href="https://godoc.org/github.com/krolaw/xsd" rel="nofollow">https://godoc.org/github.com/krolaw/xsd</a></p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传