摘要: https://mp.weixin.qq.com/s/i2jA817fXK7TxyA3lLP22A nil 接口不是 nil 我们强行将一段 Go 程序的变量值赋为 nil,并进行 nil 与 nil 的判断。 代码如下: func main() { var v interface{} v = (* 阅读全文
posted @ 2022-05-13 23:06 papering 阅读(63) 评论(0) 推荐(0) 编辑
摘要: a 翻译 搜索 复制 阅读全文
posted @ 2022-05-13 22:04 papering 阅读(38) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/SmHT6NswqsmZDKKKTjUHgw 反射式DLL注入实现 _DriverEntry 看雪学苑 2022-05-13 17:59 收录于合集#“雪花”创作激励计划63个 本文为看雪论坛优秀文章看雪论坛作者ID:_DriverEntry 一 阅读全文
posted @ 2022-05-13 18:08 papering 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Content-Disposition https://cloud.tencent.com/document/product/436/30740 如何使文件直接在浏览器中预览,而不是下载? 您需要为该文件指定正确的 Content-Type 头部,同时 Content-Disposition 的参数 阅读全文
posted @ 2022-05-13 16:40 papering 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 小结: 1、 type Any interface { } v1 := new(Any) err = json.Unmarshal([]byte(bs1), &v1) V interface{} resp.V = v1 package presentationLayer import ( "Test 阅读全文
posted @ 2022-05-13 12:54 papering 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 实践: 1、 import "encoding/json" func mapVstruct2jsonMarshal() { t := struct { A string B int32 C bool }{"a", 123, true} m := map[string]interface{}{ "A" 阅读全文
posted @ 2022-05-13 12:34 papering 阅读(49) 评论(0) 推荐(0) 编辑
摘要: int-->string strconv.Itoa(i) []byte-->string ... 阅读全文
posted @ 2022-05-13 11:16 papering 阅读(26) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/sort-colors/solution/yan-se-fen-lei-by-leetcode-solution/ 阅读全文
posted @ 2022-05-13 00:39 papering 阅读(56) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/aseY1I/solution/ 阅读全文
posted @ 2022-05-13 00:27 papering 阅读(34) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/WGki4K/solution/zhi-chu-xian-yi-ci-de-shu-zi-by-leetcode-0vrt/ 阅读全文
posted @ 2022-05-13 00:16 papering 阅读(96) 评论(0) 推荐(0) 编辑