摘要: model里 go package model type Setting struct { Key string Value string } // @desc 按Key获设置 func (Setting Setting) GetSettingInfo(Key string) (setting Se 阅读全文
posted @ 2019-10-09 15:20 HaimaBlog 阅读(4042) 评论(0) 推荐(1) 编辑
摘要: ~~~ 阅读全文
posted @ 2019-10-09 10:33 HaimaBlog 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: Golang的格式化输出 和 C语言的标准输出基本一样,但是增加了一些针对Golang语言的特有数据结构的格式化输出方式。 格式化打印中的常用占位符: 示例代码: go package main import ( "fmt" ) func main() { a := 100 //int b := 3 阅读全文
posted @ 2019-10-09 10:29 HaimaBlog 阅读(4043) 评论(0) 推荐(0) 编辑