Go语言中文网 为您找到相关结果 4

学习记录

2019-03-02 golang:1. stringsstring.Replace(s, " ", "%20", -1)string.Splitstring.SplitN: 最终分成N份string.SplitAfter: 保留sepstrings.Joinlen([]rune(s))2. switch typeswitch x := m.(type) { case bool, int: // x's type is as m, usually interface}3. structtype Param map[string]interface{}type Show struct{Param}这样是ok的,但是map需要单独maketype People struct { name str...阅读全文

博文 2019-03-02 17:34:40 wangchao71