Skip to content

Conversation

@mshedsilegx
Copy link
Owner

No description provided.

This commit addresses issues identified by the `go vet` command.

- In `menus.go`, unkeyed struct literals for `menu.Item` have been converted to keyed literals to improve code clarity and maintainability.
- In `main.go`, unreachable code following a `panic()` call in the `panicExit` function has been removed.
This commit addresses a wide range of issues identified by the `golangci-lint` command. The changes include:

- Handling previously unchecked errors.
- Removing deprecated `+build` tags and replacing them with `//go:build` directives.
- Replacing deprecated function calls, including `rand.Seed`, `io/ioutil`, and `InspectContainer`.
- Fixing ineffective assignments and break statements.
- Correcting error string formatting.
- Removing redundant assignments and break statements.
- Simplifying string replacements.
- Removing a significant amount of unused code, including functions, variables, and fields.
This commit adds the `LINTING.md` file, which contains a detailed code review and summary of the changes made to address the issues reported by `go vet` and `golangci-lint`.
This commit introduces the `ARCHITECTURE.md` file, which provides a detailed explanation of the ctop application's architecture and design.

The document includes:
- An overview of the application and its objectives.
- A breakdown of the architecture and key design choices, including the connector interface, data model, and concurrency model.
- A comprehensive list of command-line arguments with descriptions, types, and default values.
- Examples of how to use the application.
@mshedsilegx mshedsilegx merged commit 2b0fbbe into master Oct 30, 2025
1 check passed
@mshedsilegx mshedsilegx deleted the fix-go-vet-issues branch October 30, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants