<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]go-cyclic 循环依赖解决工具，解决import cycle not allowed。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Fri, 07 Jul 2023 01:58:07 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	import cycle not allowed<br/>而且如果项目很大的时候，一个包下面有很多 .go 文件，只提示包与包的循环引用（如上图），是很难定位到哪个 .go 文件和哪个 .go 文件直接进行了循环引用，难以排查。<br/><br/>go-cyclic run --dir&nbsp;&nbsp;~/go_learning/src/pdfwatcher.src.cctv.cn<br/>Failed. 1 circular dependence chains were found.<br/><br/>┌---→&nbsp;&nbsp;/Users/jackXiang/go_learning/src/pdfwatcher.src.cctv.cn/Requests/Request.go<br/>┆&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ↓<br/>└---&nbsp;&nbsp;&nbsp;&nbsp; /Users/jackXiang/go_learning/src/pdfwatcher.src.cctv.cn/Loger/Loger.go<br/><br/><br/>安装：<br/>go install github.com/elza2/go-cyclic@latest<br/>go: downloading github.com/elza2/go-cyclic v1.1.0<br/>go: downloading github.com/fatih/color v1.15.0<br/>go: downloading golang.org/x/mod v0.8.0<br/>go: downloading github.com/urfave/cli/v2 v2.24.4<br/>go: downloading github.com/mattn/go-isatty v0.0.17<br/>go: downloading github.com/mattn/go-colorable v0.1.13<br/>go: downloading golang.org/x/sys v0.6.0<br/>go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673<br/>go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2<br/>go: downloading github.com/russross/blackfriday/v2 v2.1.0<br/><br/><br/><br/>来自：https://link.zhihu.com/?target=https%3A//github.com/elza2/go-cyclic
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]go-cyclic 循环依赖解决工具，解决import cycle not allowed。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>