摘要: //定义多行字符串: `` 里面的控制字符不会被转义 func main() { s := `hello \n\r world` fmt.Println(s) } //hello //\n\r world //格式化输出 func main() { s := "a" fmt.Println(s[0] 阅读全文
posted @ 2020-01-05 20:04 mmaotai 阅读(166) 评论(0) 推荐(0) 编辑
摘要: "go addressable 详解" "Go 挖坑指南: “cannot take the address of XXX” and “cannot call pointer method on XXX" "go语言规范中对Address_operators说明" 阅读全文
posted @ 2020-01-05 12:39 mmaotai 阅读(303) 评论(0) 推荐(0) 编辑