打赏
上一页 1 2 3 4 5 6 7 ··· 54 下一页
摘要: git配置比较工具 1.修改.gitconfig文件 [diff] tool = bc4 [difftool] prompt = false [difftool "bc4"] cmd = "\"C:/Users/xxx/AppData/Local/Beyond Compare 4/BComp.exe 阅读全文
posted @ 2022-10-19 11:36 苍山落暮 阅读(275) 评论(0) 推荐(0) 编辑
摘要: golang 字符串拼接 1. 使用+拼接 s := "" s += "aaa" 2. 使用fmt.Sprintf s = fmt.Sprintf("%s%s",str1,str2) 3.使用strings.Builder var builder strings.Builder builder.Wr 阅读全文
posted @ 2022-10-19 11:33 苍山落暮 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Go generate使用 1.安装stringer 安装好的stringer命令位于$GOPATH/bin目录下,强烈建议将这个目录加入系统PATH中。 go get golang.org/x/tools/cmd/stringer 或者 $ git clone https://github.com 阅读全文
posted @ 2022-10-19 11:33 苍山落暮 阅读(88) 评论(0) 推荐(0) 编辑
摘要: windows防火墙常用命令 (1.)常用命令 查看当前防火墙状态:netsh advfirewall show allprofiles 关闭防火墙:netsh advfirewall set allprofiles state off 开启防火墙:netsh advfirewall set all 阅读全文
posted @ 2022-07-01 18:43 苍山落暮 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Ubuntu安装 1.安装net-tools apt install net-tools 2.安装sshd服务 apt-get install openssh-server 3.终端安装 sudo apt-getinstall terminator 阅读全文
posted @ 2022-07-01 18:36 苍山落暮 阅读(53) 评论(0) 推荐(0) 编辑
摘要: vmware导入文件报错 问题一: 配置文件“D:\Users\tyn\Documents\Virtual Machines\Ubuntu16 的克隆\Ubuntu16 的克隆.vmx”是由 VMware 产品创建,但该产品与此版 VMware Workstation 不兼容,因此无法使用。 无法打 阅读全文
posted @ 2022-07-01 18:33 苍山落暮 阅读(250) 评论(0) 推荐(0) 编辑
摘要: git clone no matching host key type found问题记录 报错信息 Unable to negotiate with 主机地址 port 端口号: no matching host key type found. Their offer: ssh-rsa,ssh-d 阅读全文
posted @ 2022-07-01 18:31 苍山落暮 阅读(150) 评论(0) 推荐(0) 编辑
摘要: EDID 知识普及 1.什么是EDID EDID的全称是Extended Display Identification Data(扩展显示标识数据),VGA、DVI的EDID由主块128字节组成,HDMI的EDID增加扩展块(128字节),扩展块的内容主要是和音频属性相关的,DVI和VGA没有音频, 阅读全文
posted @ 2022-07-01 18:30 苍山落暮 阅读(2472) 评论(0) 推荐(1) 编辑
摘要: Apifox使用 apifox接口中token的替换: (1.)登录接口,选择后置操作,选择公共脚本 // 把responseBody转换为json字符串 var resp = JSON.parse(responseBody); // 设置环境变量token,供后面的接口引用 pm.globals. 阅读全文
posted @ 2022-07-01 18:27 苍山落暮 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: Gorm 实现对数据库的版本升级 1. 实现原理 package main import ( "log" "github.com/go-gormigrate/gormigrate/v2" "gorm.io/driver/sqlite" "gorm.io/gorm" ) func main() { d 阅读全文
posted @ 2022-07-01 18:24 苍山落暮 阅读(762) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 54 下一页