上一页 1 2 3 4 5 6 7 ··· 48 下一页
摘要: 最新版的goland好像不用配置额外的环境变量,但是命令行模式需要设置环境变量 package main import ( "encoding/json/v2" "fmt" "log" ) // User 演示Go 1.25 JSON v2的新特性 type User struct { Name s 阅读全文
posted @ 2025-08-27 17:23 朝阳1 阅读(26) 评论(0) 推荐(0)
摘要: Hashtable(k,v都不允许为null)、ConcurrentHashTable(k,v都不允许为null),ConcurrentHashMap(k,v都不允许为null),TreeMap不允许key为null,但是value可以为null。TreeSet不能为null,因为要排序 HashS 阅读全文
posted @ 2025-08-27 17:05 朝阳1 阅读(18) 评论(0) 推荐(0)
摘要: Hashtable(k,v都不允许为null)、ConcurrentHashTable(k,v都不允许为null),ConcurrentHashMap(k,v都不允许为null),TreeMap不允许key为null,但是value可以为null。TreeSet不能为null,因为要排序 HashS 阅读全文
posted @ 2025-08-27 16:49 朝阳1 阅读(9) 评论(0) 推荐(0)
摘要: 以下是参考别人写的,本来想弄一个自然语言查询,发现太难了。。。 package main import ( "context" "encoding/csv" "flag" "fmt" "log" "strings" _ "github.com/go-sql-driver/mysql" "github 阅读全文
posted @ 2025-08-27 09:42 朝阳1 阅读(17) 评论(0) 推荐(0)
摘要: 这里只简单写了tool,关于Resources和Prompts可以参考 https://github.com/mark3labs/mcp-go/tree/main main.go package main import ( "context" "fmt" "github.com/mark3labs/ 阅读全文
posted @ 2025-08-25 11:52 朝阳1 阅读(27) 评论(0) 推荐(0)
摘要: 需要安装的包 allure-pytest 生成测试报告 pytest 测试 pytest-dependency 测试之间的依赖 pytest-ordering 测试排序 pytest-xdist 多进程测试 pytest-result-log 自动记录测试报告的日志 faker 生成moker数据 阅读全文
posted @ 2025-08-22 11:56 朝阳1 阅读(7) 评论(0) 推荐(0)
摘要: ws或者tcp不像http有路由,只能自定义消息格式,拆出来路由 message package message import ( "encoding/json" "github.com/olahol/melody" ) // Message 消息结构体 type Message struct { 阅读全文
posted @ 2025-08-12 14:23 朝阳1 阅读(7) 评论(0) 推荐(0)
摘要: ![image](https://img2024.cnblogs.com/blog/3302358/202508/3302358-20250804163050222-2001887912.png) 阅读全文
posted @ 2025-08-04 16:30 朝阳1 阅读(3) 评论(0) 推荐(0)
摘要: *args和**kwargs: *args接收可变数量的位置参数(元组) **kwargs接收可变数量的关键字参数(字典) grep查找a.txt文件中某字符,并打印该字符的位置.-n显示行号,-o仅输出匹配字符,-b显示字节偏移量 grep -nob '目标字符' a.txt is和==的区别: 阅读全文
posted @ 2025-08-04 14:41 朝阳1 阅读(11) 评论(0) 推荐(0)
摘要: package main import ( "crypto/tls" "fmt" "net" "sync" "time" ) type CertInfo struct { Domain string ExpiryTime time.Time DaysLeft int Error error } fu 阅读全文
posted @ 2025-07-18 16:48 朝阳1 阅读(9) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 48 下一页