• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-mate / go-work
66%
main: 66%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.0.13
DEFAULT BRANCH: main
Repo Added 30 Oct 2025 03:31AM UTC
Token LwFOsHJeoyuZ9hoTLcHVcIII4vt6L7joH regen
Build 4 Last
Files 5
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/v0.0.13
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main
  • refs/tags/v0.0.12
  • refs/tags/v0.0.13

13 Dec 2025 10:19AM UTC coverage: 65.865% (-0.03%) from 65.899%
20190688123

push

github

yangyile
Streamline workspath API with functional options pattern

BREAKING CHANGES - Migration Guide:
- Old: NewOptions().WithIncludeCurrentProject(true).WithIncludeSubModules(true)
- New: GetModulePaths(path, WithCurrentProject(), ScanDeep(), SkipNoGo())
- Old: FindModulePaths(path, options)
- New: GetModulePaths(path, ...Option)
- Old: GetProjectPath() returns (root, subpath, ok)
- New: GetProjectPath() returns (*ProjectPath, ok) with Root/SubPath fields
- New: GetProjectRoot() returns (root, ok) - simple root detection

Code Changes:
- Split workspath into works_path.go and options.go
- Add functional options: WithCurrentProject(), WithCurrentPackage(), ScanDeep(), SkipNoGo(), DebugMode(), WithDebug(bool)
- Add GetProjectRoot() function - returns project root path
- Add ProjectPath struct with Root and SubPath fields
- Rename internal functions: shouldSkip→isHidden, hasGoFiles→existsGoFiles
- Reduce package from ~270 lines to ~160 lines

CLI Changes:
- Remove command execution (worksexec/worksubcmd packages removed in previous commit)
- Default command: list module paths with JSON output
- Add version subcommand: list Go versions from go.mod files
- Add cobra.NoArgs to restrict arguments
- Use golang.org/x/mod/modfile to parse go.mod

Documentation and CI:
- Update README.md and README.zh.md with new API examples
- Update footer template to version 2025-11-25
- Add .github/workflows/release.yml with Go 1.22.x-1.25.x matrix
- Update Go version badge link to go.dev

Tests:
- Add tests: GetProjectPath, GetProjectRoot, GetModulePaths with options
- Add edge case tests: NotFound, RootIsModule, ScanDeep, SkipNoGo, NotModule
- Use setupTestProject/cleanupDIR test helpers

79 of 138 new or added lines in 3 files covered. (57.25%)

3 existing lines in 2 files now uncovered.

137 of 208 relevant lines covered (65.87%)

27.81 hits per line

Relevant lines Covered
Build:
Build:
208 RELEVANT LINES 137 COVERED LINES
27.81 HITS PER LINE
Source Files on main
  • Tree
  • List 5
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20190688123 refs/tags/v0.0.13 Streamline workspath API with functional options pattern BREAKING CHANGES - Migration Guide: - Old: NewOptions().WithIncludeCurrentProject(true).WithIncludeSubModules(true) - New: GetModulePaths(path, WithCurrentProject(), ScanDeep(), SkipNoGo())... push 13 Dec 2025 10:21AM UTC yangyile github
65.87
20190686592 main Streamline workspath API with functional options pattern BREAKING CHANGES - Migration Guide: - Old: NewOptions().WithIncludeCurrentProject(true).WithIncludeSubModules(true) - New: GetModulePaths(path, WithCurrentProject(), ScanDeep(), SkipNoGo())... push 13 Dec 2025 10:21AM UTC yangyile github
65.87
18928948752 refs/tags/v0.0.12 Remove worksexec and worksubcmd packages - Introduce Config struct to encapsulate execution parameters - Remove worksexec package and its tests - Remove worksubcmd package and its tests - Update dependencies - Add GitHub Actions workflow with Go ... push 30 Oct 2025 03:31AM UTC yyle88 github
65.9
18928945897 main Remove worksexec and worksubcmd packages - Introduce Config struct to encapsulate execution parameters - Remove worksexec package and its tests - Remove worksubcmd package and its tests - Update dependencies - Add GitHub Actions workflow with Go ... push 30 Oct 2025 03:31AM UTC yyle88 github
65.9
See All Builds (4)

Badge your Repo: go-work

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc