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