随笔分类 - golang
摘要:Make the IPAddr type implement fmt.Stringer to print the address as a dotted quad. For instance, IPAddr{1, 2, 3, 4} should print as "1.2.3.4". 1 package main 2 3 import "fmt" 4 5 type IPAdd...
阅读全文
摘要:Exercise: Fibonacci closure 题目: 代码: 运行结果:
阅读全文
摘要:Exercise: Maps 题目: 代码: 结果:
阅读全文
摘要:Exercise: Slices 题目: 代码: 结果:
阅读全文
摘要:开始学golang 上手文档https://golang.org/doc/install tour:https://tour.golang.org 系统:windows10 64bit 从文档上抄一段代码,保存为hello.go 运行命令: 运行结果: 以上。
阅读全文
浙公网安备 33010602011771号