Comments (1)
这里描述不太准确。应该为"两个结构体值只有在它们的类型相同或者的它们的底层类型相同(要考虑字段标签)并且其中至少有一个结构体值的类型为为非定义类型时(换句话说,只有它们可以被隐式转换为对方的类型的时候,见下)才可以互相赋值”。
多谢这个发现,随后会对这里改动一下。
from golang101.
Related Issues (20)
- 在数组、切片和映射中有下面这个例子,里面说被遍历的数组是persons的一个副本。所以persons[1].name = "Jack"不会生效,但是下面的输出显示生效了。似乎有误。 HOT 2
- 文章中都是长难句
- 申请使用中英文版内容
- 在线阅读网站阅读体验 HOT 1
- 原子操作CompareAndSwapT HOT 1
- 代码类型错误,应该是bool HOT 2
- 关于《Go Optimizations 101》 HOT 5
- Go Optimizations 101 提到的内联函数对性能的负面影响 HOT 2
- sync包 HOT 2
- 打印内容冗余 HOT 1
- 《Go 细节和小技巧 101》电子书下载链接 HOT 9
- 《Go 细节和小技巧 101》3.4 从字符串转换来的字节型切片的容量是未指定的 HOT 2
- 中文版的pdf在哪里下载? HOT 1
- 《如何优雅地关闭通道》中信号丢失的疑问 HOT 2
- 下载慢 HOT 7
- 希望增加《Go Optimizations 101》的国内付费购买渠道 HOT 1
- 访问《Go语言(基础知识)101》 报错 HOT 3
- 《Go细节和小技巧101》错别字与示例输出问题 HOT 2
- 代码问题 HOT 3
- 你好!关于type关键字 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang101.