From c9dec8a0b748617536e2089178e0c18e5a499281 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sun, 20 Mar 2022 23:41:14 -0700 Subject: [PATCH] Update README to fix namespace error --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24c7e6f..a83c977 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,10 @@ func main() { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() // Equivalent to `systemctl enable nginx` with a 10 second timeout - opts := Options{ + opts := systemctl.Options{ usermode: false, } - err := Enable(ctx, unit, opts) + err := systemctl.Enable(ctx, unit, opts) if err != nil { log.Fatalf("unable to enable unit %s: %v", "nginx", err) }