chore: update Go 1.26.2, document all helpers in README, use prepareArgs consistently (#12)

- 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
This commit is contained in:
2026-04-12 10:27:36 +02:00
committed by GitHub
parent da8db0d3a3
commit 2f04c28cc1
4 changed files with 13 additions and 16 deletions

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.26"]
go-version: ["1.26", "1.26.2"]
steps:
- uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
run: sudo go test -race -coverprofile=coverage-root.out -covermode=atomic ./...
- name: Upload coverage to Codecov
if: matrix.go-version == '1.26'
if: matrix.go-version == '1.26.2'
uses: codecov/codecov-action@v5
with:
files: coverage-user.out,coverage-root.out