摘要:
var t []string Declaring Empty Slices Go Slices: usage and internals The former declares a nil slice value, while the latter is non-nil but zero-lengt 阅读全文
摘要:
%q a single-quoted character literal safely escaped with Go syntax a := "aaa" fmt.Printf("%s", a) // 输出 aaa a := "aaa" fmt.Printf("%q", a) // 输出 "aaa" 阅读全文
摘要:
在函数体中修改函数参数时,ESLint是这样提示的: Assignment to property of function parameter 'options'.(no-param-reassign) 错误的写法: const makePerson = function (favoriteColo 阅读全文