Commit Graph

34 Commits

Author SHA1 Message Date
Callan Taylor
c588ddea2d Close unclosed files (#735)
* Cose unclosed files

* Close additional unclosed file

* Dont use defer in loop

* Removed missed instances of defer in loop
2019-11-12 20:28:23 -08:00
SoniaChoo
f462e39fa6 更新第十章timezones.go练习题答案 (#722)
* 根据map章节的教程,改写String方法

* format the source code

* update to make it more friendly to new learners.

* Update according to comments
2019-10-15 13:59:06 -07:00
Alan
c07cc53168 修复打印的斐波那契数列出现0的问题 (#713)
因为 chan c 中并没有把最开始放入的0给移除,造成打印数列中多出一个错误的0值。
2019-08-17 05:34:35 +08:00
obasang
e30be57a38 Update hello_who.go (#635)
练习 12.5:hello_who.go 写一个"Hello World"的变种程序:把人的名字作为程序命令行执行的一个参数,
比如:hello_who Evan Michael Laura 那么会输出Hello Evan Michael Laura!
按照原实现,与题目中的示例不符
2019-07-10 21:29:40 -07:00
crackedcd
80b74f6d08 Update min_interface.go (#543)
Min(data Miner) 方法存在bug,原因是: 该方法的逻辑类似冒泡排序, 将Miner类型变量的集合挨个两两比对,但方法中仅将两变量的较小值取出(Less()方法),并赋值记录为min,最后返回,并没有进行“冒泡”这个swap操作。
因此补充了Swap()相关的接口和实现定义,并补充了Swap()在Min()方法中的逻辑。
2018-09-10 06:34:37 -04:00
GravityConstant
39fc34c47d can not get min value (#537) 2018-09-08 07:00:05 -04:00
blurty
ea414dbb85 fix case of shorter length of inputString (#506)
当读取的inputString的长度小于5时,string([]byte(string))会出现bug
2018-06-12 21:05:58 +08:00
Allen.Guo
695188fe0d 修复代码bug--> exercises/chapter_7/remove_slice.go (#433)
* 修复代码bug, 切片取值错误导致结果偏差,丢失最后一个元素,优化创建切片的容量,避免每次自动扩容1个大小

* 使用切片完成操作
2018-03-05 03:54:44 -05:00
sanshan
30fe7a7003 http://twitter.com/users/Googland.json页面不存在了 (#393)
http://twitter.com/users/Googland.json页面不存在了
2017-08-13 02:14:15 -04:00
无闻
da57568722 Merge pull request #322 from appleboy/patch-8
fix: coding style and file format for chapter 11, 12, 13, 14 and 15.
2017-02-10 23:34:01 -05:00
无闻
f215102638 Merge pull request #321 from appleboy/patch-7
fix: coding style and file format for chapter 9.
2017-02-10 23:32:50 -05:00
无闻
27bfcb29ac Merge pull request #320 from appleboy/patch-6
fix: coding style and file format for chapter 10.
2017-02-10 23:32:24 -05:00
Bo-Yi Wu
4abbfabb52 fix: coding style and file format for chapter 11, 12, 13, 14 and 15. 2017-02-11 12:32:16 +08:00
无闻
79a18bf186 Merge pull request #319 from appleboy/patch-5
fix: coding style and file format for chapter 8.
2017-02-10 23:31:27 -05:00
无闻
c5413075c1 Merge pull request #318 from appleboy/patch-4
fix: coding style and file format for chapter 7.
2017-02-10 23:31:07 -05:00
无闻
759272e928 Merge pull request #317 from appleboy/patch-3
fix: coding style and file format for chapter 6.
2017-02-10 23:30:42 -05:00
Bo-Yi Wu
cee64d1429 fix: coding style and file format for chapter 9. 2017-02-11 12:30:01 +08:00
Bo-Yi Wu
ca79293078 fix: coding style and file format for chapter 10. 2017-02-11 12:28:43 +08:00
Bo-Yi Wu
6edacddbb3 fix: coding style and file format for chapter 8. 2017-02-11 12:27:17 +08:00
Bo-Yi Wu
e6d601d3a1 fix: coding style and file format for chapter 7. 2017-02-11 12:26:05 +08:00
Bo-Yi Wu
72c3839734 fix: coding style and file format for chapter 6. 2017-02-11 12:24:19 +08:00
Bo-Yi Wu
a9d9338d6b fix: coding style and file format. 2017-02-11 12:22:18 +08:00
Bo-Yi Wu
b27e4d2435 fix: coding style and file format. 2017-02-10 16:33:02 +08:00
Instrye
e8d45acd31 Update calculator.go 2017-02-10 15:13:14 +08:00
marekchen
2838c9476b Update word_letter_count.go 2016-12-21 19:44:34 +08:00
marekchen
982f6b1abd fix start with or end with space,word count error 2016-12-16 01:30:40 +08:00
colawarrior
31a22881be Update statistics.go (#287)
当在网页的文本框中输入中文逗号来分隔的数字和汉字或者数字和英文的组合时,错误信息打印不正确的问题
2016-11-19 22:23:07 -05:00
王耀
d40ca54c10 Update 07.3.md and 07.6.md (#273)
* Update 07.3.md

* Update 07.3.md

* Update 07.6.md
2016-08-22 20:58:44 -07:00
ArkBriar
01e9fae48d Add exercise 12.4: wiki_part1.go 2015-11-06 13:36:47 +08:00
Unknwon
eab1d98ba8 update book code 2015-03-03 12:25:25 -05:00
Unknwon
4e77df3558 exercises: fix #72 2015-02-14 16:09:53 -05:00
eXthen
b429798ed4 添加06.2.md和相关的例子与问题解答 2013-07-25 18:44:41 +08:00
Unknown
67be80ca8c 05.0.md 2013-06-22 21:29:42 +08:00
Unknown
4de688c86a 4.5.2.5.md 2013-06-09 20:18:11 +08:00