上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 开启PHP错误日志级别 抛出绝大多数错误异常 //临时修改配置 ini_set("display_errors", On); ini_set('log_errors','on'); //开启日志写入功能 ini_set('error_log','myerror.log'); //日志的存放位置 in 阅读全文
posted @ 2021-09-11 22:40 小匡程序员 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 参考 https://blog.csdn.net/OldDriver1995/article/details/100550224 基本概念和关系 1,指针变量也是变量也有自己的内存地址,指针变量的值为另一个变量的地址 2,指针变量类型前面需要*,指针变量的值为&另一个变量(可以是指针变量) 3,&为 阅读全文
posted @ 2021-09-02 11:37 小匡程序员 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.jianshu.com/p/6ca885ede2a8(sync/atomaic原子操作) https://zhuanlan.zhihu.com/p/401606797(知乎:atomic原子操作) 核心概念: 原子性:一个或多个操作在CPU的执行过程中不被中断的特性, 阅读全文
posted @ 2021-09-02 10:10 小匡程序员 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.jianshu.com/p/24ede9e90490(简书:由浅入深剖析go channel) https://zhuanlan.zhihu.com/p/32521576(知乎:go channel 最佳实践) https://blog.csdn.net/qq_359 阅读全文
posted @ 2021-08-31 17:34 小匡程序员 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 参考: https://zhuanlan.zhihu.com/p/300992397(知乎go结构体) https://studygolang.com/articles/11313 (go中文网) 匿名结构体和非匿名结构体 上代码: package main import "fmt" type in 阅读全文
posted @ 2021-08-31 10:00 小匡程序员 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 参考: https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/03.4.md(谢孟军:http包详解) 核心底层方法 启动服务 //开始 http.ListenAndServe(":3000",nil) 阅读全文
posted @ 2021-08-25 16:41 小匡程序员 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/li_101357/article/details/80286549(CSDN:sync包) https://zhuanlan.zhihu.com/p/365552668(sync源码分析) https://zhuanlan.zhihu.com/p 阅读全文
posted @ 2021-08-25 15:05 小匡程序员 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.jianshu.com/p/6def5063c1eb(context应用场景) https://zhuanlan.zhihu.com/p/110085652(深入理解context) https://www.topgoer.com/%E5%B8%B8%E7%94%A8 阅读全文
posted @ 2021-08-25 11:44 小匡程序员 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 参考: https://studygolang.com/articles/34347 (反射主要用法)http://books.studygolang.com/gopl-zh/ch12/ch12-02.html(reflect.Type 和 reflect.Value) http://books.s 阅读全文
posted @ 2021-08-23 10:58 小匡程序员 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 参考: /shiluoliming/p/8312928.html(简单写文件操作的4种方法) 创建文件 import ( "bufio" //缓存IO "fmt" "io" "io/ioutil" //io 工具包 "os" ) //变量 var wir 阅读全文
posted @ 2021-08-18 15:32 小匡程序员 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页