Go
Golang
doNotTellU
这个作者很懒,什么都没留下…
展开
-
Go中处理数据库中NULL值的方法
如果你在Golang中处理过SQL,你就会知道处理NULL值并不容易。接口已经通过使用Go的nil来支持NULL值,但语言的设计不允许将nil分配给string或int变量。这篇文章将提供一些方案。翻译 2022-10-13 19:36:13 · 2248 阅读 · 0 评论 -
手机不能访问局域网内的Django服务?
python自带的文件服务器:Django搭建的服务器:Go搭建的服务器:原创 2020-02-15 03:10:31 · 1642 阅读 · 0 评论 -
gocv
opencv的安装编译对硬件要求,相对较低的配置(1核+500M)下会出错,换用较高配置(2核+4G)则不会出现问题原创 2018-02-26 17:46:04 · 1129 阅读 · 0 评论 -
GoLand代码生成设置
参考JetBrains博客原创 2018-03-16 12:33:14 · 5558 阅读 · 1 评论 -
golang项目main包的问题
golang项目中的main包里除main.go外若有其他go文件时,采用go run main.go运行项目大部分时候是会出错的解决办法:在项目根目录下执行go build ./main这样就可以生成main.exe文件,运行此文件即可...原创 2018-02-11 10:29:25 · 2243 阅读 · 0 评论 -
goland中编辑tpl文件不高亮没智能补全的问题
原创 2018-01-06 19:18:46 · 3757 阅读 · 1 评论 -
Golang连接MySQL8发生的this authentication plugin is not supported问题
https://www.pixelstech.net/article/1531316568-Fix-this-authentication-plugin-is-not-supported-issue-while-using-Go-to-connect-MySQL-8原创 2019-07-02 21:28:27 · 989 阅读 · 0 评论 -
golang !=EOF
C程序:/* AOJ0001 List of Top 3 Hills */ #include <stdio.h> #include <limits.h> int main(void) { int a, max1, max2, max3, temp; max1 = max2 = max3 = INT_MIN; ...原创 2018-03-23 16:06:27 · 2722 阅读 · 0 评论 -
Gogland中输入中文时卡顿的问题
把自己的jre复制过来,并且把名字改为Gogland自带jre的名字原创 2017-09-19 20:09:00 · 683 阅读 · 0 评论 -
# runtime/cgo _cgo_export.c:3:10: fatal error: stdlib.h: 没有那个文件或目录
场景复现:在Ubuntu下的GoLand中以Debug模式运行程序。报错信息:# runtime/cgo_cgo_export.c:3:10: fatal error: stdlib.h: 没有那个文件或目录 3 | #include <stdlib.h> | ^~~~~~~~~~compilation terminated.Compilation finished with exit code 2解决方法:sudo apt-get in原创 2021-07-31 22:43:46 · 3918 阅读 · 0 评论