Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

彻底搞懂 golang 里的 iota #40

Open
wolfogre opened this issue Apr 25, 2019 · 9 comments
Open

彻底搞懂 golang 里的 iota #40

wolfogre opened this issue Apr 25, 2019 · 9 comments

Comments

@wolfogre
Copy link
Owner

https://blog.wolfogre.com/posts/golang-iota/

@zqb7
Copy link

zqb7 commented Apr 29, 2019

优质博客+1

@wolfogre wolfogre transferred this issue from wolfogre/blog-gitment Nov 2, 2019
Copy link

作者有心了,果断收藏此文

Copy link

有心作者+1

@Andrewpqc
Copy link

刚被人用这玩意儿侮辱了一番

Copy link

好文+1

Copy link

zzmmff commented May 13, 2024

作者后面的 免死声明笑死我了

Copy link

BY-H commented Jun 5, 2024

好文,感谢博主

Copy link

真的会在工程里出现这种代码吗?

Copy link

有被作者声明笑到,今天确实遇到第四个问题。

const (
	QualityOK     int32 = 200
	QualityGood   int32 = 201
	QualityGreat  int32 = 202
	QualityLow       = 400 + iota
	QualityPoor 
)

我期待着QualityPoor应该打印401,然而它打一架的是404。。。所以我真的到你这来了。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants