Skip to content
forked from elza2/go-cyclic

Go 循环依赖检测工具. import cycle not allowed. cyclic dependency detection tool. go-cyclic tool.

Notifications You must be signed in to change notification settings

tabelf/go-cyclic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cyclic

Go 循环依赖检测工具

快速开始

go install github.com/elza2/go-cyclic@latest
# path 路径要设置为 go.mod 文件所在的路径.
go-cyclic gocyclic --dir .path

运行测试

git clone https://github.com/elza2/go-cyclic.git
# path 路径要设置为 go.mod 文件所在的路径.
go run ./main.go gocyclic --dir .path

运行结果

# success output.
Success. Not circular dependence.

# failed output.
Failed. 1 circular dependence chains were found.

┌---→    app.go
┆          ↓
┆       routes.go
┆          ↓
└---    handler.go

About

Go 循环依赖检测工具. import cycle not allowed. cyclic dependency detection tool. go-cyclic tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%