From 21fce7918ea9bdec84a7d6ce0bfbd95a4d945119 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Thu, 13 Feb 2025 16:49:49 -0800 Subject: [PATCH] add linux build tags to restrict compilation to linux targets --- errors.go | 2 ++ helpers.go | 2 ++ structs.go | 2 ++ systemctl.go | 2 ++ util.go | 2 ++ 5 files changed, 10 insertions(+) diff --git a/errors.go b/errors.go index c97327b..4aca7a3 100644 --- a/errors.go +++ b/errors.go @@ -1,3 +1,5 @@ +//go:build linux + package systemctl import ( diff --git a/helpers.go b/helpers.go index 37d8da6..bcb3fe2 100644 --- a/helpers.go +++ b/helpers.go @@ -1,3 +1,5 @@ +//go:build linux + package systemctl import ( diff --git a/structs.go b/structs.go index 0a0458a..41d8fe7 100644 --- a/structs.go +++ b/structs.go @@ -1,3 +1,5 @@ +//go:build linux + package systemctl type Options struct { diff --git a/systemctl.go b/systemctl.go index cce2688..2b4b2e9 100644 --- a/systemctl.go +++ b/systemctl.go @@ -1,3 +1,5 @@ +//go:build linux + package systemctl import ( diff --git a/util.go b/util.go index 2cc88cd..a17e249 100644 --- a/util.go +++ b/util.go @@ -1,3 +1,5 @@ +//go:build linux + package systemctl import (