Posted in

Go圣诞树的“第13层隐藏彩蛋”:通过debug.ReadBuildInfo读取Git Commit Hash并动态渲染分支名

第一章:Go圣诞树的“第13层隐 … Go圣诞树的“第13层隐藏彩蛋”:通过debug.ReadBuildInfo读取Git Commit Hash并动态渲染分支名Read more

Posted in

Go嵌入式资源路径陷阱:embed.FS + runtime/debug.ReadBuildInfo() 如何精准定位静态资源根目录?

第一章:Go嵌入式资源路径陷阱的 … Go嵌入式资源路径陷阱:embed.FS + runtime/debug.ReadBuildInfo() 如何精准定位静态资源根目录?Read more

Posted in

Go语言国家归属终极验证:调用debug.ReadBuildInfo()解析go.mod中replace指令指向的原始仓库地理元数据

第一章:Go语言国家归属终极验证 … Go语言国家归属终极验证:调用debug.ReadBuildInfo()解析go.mod中replace指令指向的原始仓库地理元数据Read more