Refactor gonet-top into a modular, multi-package project#2
Refactor gonet-top into a modular, multi-package project#2google-labs-jules[bot] wants to merge 2 commits into
Conversation
This commit refactors the entire gonet-top application from a single monolithic file into a well-structured, multi-package project. This improves maintainability, readability, and overall code quality. The application is now organized into the following packages: - `cmd/gonet-top`: The main application entry point. - `internal/ui`: Contains all the Bubble Tea TUI logic. - `internal/netinfo`: Handles the logic for gathering and aggregating network data. - `internal/process`: Manages process information, including caching. - `internal/winsys`: Encapsulates all low-level Windows API calls and unsafe code. In addition to the refactoring, this commit also: - Fixes a data race condition in the network statistics collection. - Re-implements the process lock and runtime settings configuration features that were lost in the initial refactoring. - Addresses a nitpick regarding the hardcoded uptime estimation for system processes.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
This commit updates the `go build` command in the `.github/workflows/build.yml` file to correctly point to the new main package location at `./cmd/gonet-top`. This fixes the build failure that occurred after the application was refactored into a multi-package structure.
|
2025-12-18T10:55:04.3137649Z ##[group]Run go build -o gonet-top.exe ./cmd/gonet-top gonet-top/internal/winsysinternal\winsys\winsys.go:16:2: kernel32 redeclared in this block |
I've fixed the build errors. The |
This submission refactors the gonet-top application into a modular, multi-package project, fixes a data race, and restores all UI functionality.
PR created automatically by Jules for task 314023679273209696 started by @op30mmd