初级会员
  • 第 40837 位会员
  • busgo
  • 466862016@qq.com
  • 2019-07-26 09:48:06
  • Offline
  • 56 12

最近发布的主题

最近发布的文章

最近分享的资源

最近发布的项目

最近的评论

  • 2023-12-06 15:35:44 评论了主题 go有sql 格式化的相关包么?
    这样? ``` go func CompressSQL(sqlStatement string) string { // Remove leading and trailing white spaces sqlStatement = strings.TrimSpace(sqlStatement) // Replace multiple spaces and newlines with a single space sqlStatement = regexp.MustCompile(`\s+`).ReplaceAllString(sqlStatement, " ") // Remove comments starting with '--' or '/*' and ending with '*/' sqlStatement = regexp.MustCompile(`--.*$|/\*.*?\*/`).ReplaceAllString(sqlStatement, "") // Remove unnecessary spaces around parentheses sqlStatement = regexp.MustCompile(`\s*([(),])\s*`).ReplaceAllString(sqlStatement, "$1") return sqlStatement } ```
  • 2021-07-12 21:40:30 评论了主题 Golang使用dig真的会比直接func注入跟new好?
    老哥你这用的 **Style** 不对吧 依赖注入 是对象直接依赖注入一次即可完成 为啥你每次用到对应的依赖对象的时候直接 执行Invoke呢?
  • 248434199@qq.com 谢谢大佬
  • 2019-10-23 16:53:15 评论了博文 人口贩卖贴
    年底了都
  • 2019-10-22 18:58:47 评论了项目 分布式任务调度平台forest
    演示地址:http://122.51.106.217:6579