Skip to content

chore: update Go 1.26.2, document all helpers, consistent arg construction#12

Merged
taigrr merged 1 commit intomasterfrom
cd/update-docs-and-go-version
Apr 12, 2026
Merged

chore: update Go 1.26.2, document all helpers, consistent arg construction#12
taigrr merged 1 commit intomasterfrom
cd/update-docs-and-go-version

Conversation

@taigrr
Copy link
Copy Markdown
Owner

@taigrr taigrr commented Apr 8, 2026

Changes

  • Go version bump: 1.26.1 → 1.26.2
  • README: Document all helper functions that were missing from the feature list:
    • GetUnits — list all loaded units and their states
    • GetMaskedUnits — list masked units
    • GetSocketsForServiceUnit — get sockets for a service
    • IsMasked — check if a unit is masked
    • IsRunning — check if a unit's sub-state is running
    • IsSystemd — detect if systemd is the init system
    • HasValidUnitSuffix — validate unit name suffixes
  • README: Remove unused fmt import from example code
  • Refactor: GetSocketsForServiceUnit, GetUnits, and GetMaskedUnits now use prepareArgs instead of manually constructing args with user/system mode checks. This ensures consistent --system/--user flag handling across all functions.
  • CI: Add Go 1.26.2 to test matrix, run coverage upload on latest version

…rgs consistently

- Bump go.mod from 1.26.1 to 1.26.2
- Add all helper functions to README (GetUnits, GetMaskedUnits,
  GetSocketsForServiceUnit, IsSystemd, IsMasked, IsRunning,
  HasValidUnitSuffix)
- Remove unused fmt import from README example
- Refactor GetSocketsForServiceUnit, GetUnits, GetMaskedUnits to use
  prepareArgs instead of manual arg construction
- Add Go 1.26.2 to CI test matrix
@taigrr taigrr merged commit 2f04c28 into master Apr 12, 2026
1 of 3 checks passed
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.

1 participant