Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTargets ¶
func FindTargetsFrom ¶
FindTargetsFrom find all dir under {workdir}/{subdir}/ with 1 depth as target and then filter target if it does not contains {mustContainFile}
[example]:
workdir/
|- cmd
|- a - main.go
|- b - main.go
|- c - xxx.go
call findTargetsFrom(workdir, "cmd", "main.go") -> result: ["cmd/a", "cmd/b"]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.