struct 全部 | 未解决 | 已解决
2019.09.23 06:43来自 duanhu7390

[已解决] Golang将任何结构存储在其他结构字段中

<div class="post-text" itemprop="text"> <p>I have this code:</p> <pre><code>type TestData struct { ...
1

回答

2019.09.19 08:31来自 dqnf28092

[已解决] 如何使用较少的字段将结构转换为其他结构

<div class="post-text" itemprop="text"> <p>I am trying to copy a struct of type Big to type Small withou...
4

回答

2019.09.13 10:50来自 drhgzx4727

[已解决] 如何在Go中使用自定义属性类型进行JSON解组

<div class="post-text" itemprop="text"> <p>In my project, I've defined structures so that get data from ...
1

回答

2019.09.11 09:15来自 dourao1896

[已解决] 如何在golang proto中获取所有字段名称生成复杂的结构

<div class="post-text" itemprop="text"> <p>I am trying to get all the fields names in the go file genera...
1

回答

2019.09.09 12:43来自 dqm4675

[已解决] 解析动态XML

<div class="post-text" itemprop="text"> <p>I understand how to unmarshal simple xml data to Go structs b...
2

回答

2019.09.09 12:34来自 dss087358

[已解决] 如何为指向不同结构的指针实现相同的功能?

<div class="post-text" itemprop="text"> <p>Suppose I have a lot of different structs, but they all share...
2

回答

2019.09.03 22:04来自 duanha3539

[已解决] 通过反射创建类型并通过引用传递,但无法正常工作

<div class="post-text" itemprop="text"> <p>When I dynamically create a pointer to a type and then pass i...
1

回答

2019.09.03 07:54来自 dongmoyu0336

[已解决] Type.Field和Value.Field有什么区别?

<div class="post-text" itemprop="text"> <p>Following code.</p> <pre><code>func fieldsTest(target interf...
1

回答

2019.09.02 08:41来自 dousao6313

[已解决] 是否可以像代码中那样对单个标签使用多个标签值

<div class="post-text" itemprop="text"> <pre><code>type XMLStruct struct { Name string `json:"na...
4

回答

2019.09.01 18:59来自 dshtze500055

[已解决] 同一结构的多个接口

<div class="post-text" itemprop="text"> <p>I'm learning Go and wondering in some cases if it is consider...
2

回答