Posted in

Go项目在IDE里显示“no Go files in workspace”?根本原因竟是go.mod中replace指令触发gopls路径解析失败(已提交Go issue #62198)

第一章:Go语言用什么软件打开 … Go项目在IDE里显示“no Go files in workspace”?根本原因竟是go.mod中replace指令触发gopls路径解析失败(已提交Go issue #62198)Read more

Posted in

为什么你的go test总报“no Go files in directory”?——Go工作区目录层级规范(含go.work、go.mod、internal/三重校验流程图)

第一章:Go工作区目录结构的核心 … 为什么你的go test总报“no Go files in directory”?——Go工作区目录层级规范(含go.work、go.mod、internal/三重校验流程图)Read more

Posted in

Go 1.16 embed + http.FileServer组合触发HTTP响应头泄露?——2021年静态资源服务安全加固checklist(含CVE-2021-33196复现)

第一章:Go 1.16 embe … Go 1.16 embed + http.FileServer组合触发HTTP响应头泄露?——2021年静态资源服务安全加固checklist(含CVE-2021-33196复现)Read more

Posted in

【Go工程化基石】:为什么你的微服务总在CI阶段报“no Go files in directory”?包声明层级结构终极指南

第一章:Go包声明的本质与设计哲 … 【Go工程化基石】:为什么你的微服务总在CI阶段报“no Go files in directory”?包声明层级结构终极指南Read more

Posted in

Go语言程序文件描述符泄露导致“too many open files”?——fd监控脚本+net.Conn泄漏定位+setrlimit调优三重防护

第一章:Go语言程序文件描述符泄 … Go语言程序文件描述符泄露导致“too many open files”?——fd监控脚本+net.Conn泄漏定位+setrlimit调优三重防护Read more

Posted in

Go embed + http.FileServer在Nginx反向代理下的Content-Type错配:MIME type fallback机制引发的前端资源加载阻塞

第一章:Go embed + h … Go embed + http.FileServer在Nginx反向代理下的Content-Type错配:MIME type fallback机制引发的前端资源加载阻塞Read more