From 4b7d616862dc7d8c73561b85deb0ca1fabf30781 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Tue, 17 Sep 2024 13:48:42 +0900 Subject: exit: move final and early code to internal package Exit cleanup state information is now stored in a dedicated struct and built up using methods of that struct. Signed-off-by: Ophestra Umiker --- internal/app/launch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/app/launch.go') diff --git a/internal/app/launch.go b/internal/app/launch.go index 886e683c..b44c7785 100644 --- a/internal/app/launch.go +++ b/internal/app/launch.go @@ -5,11 +5,11 @@ import ( "encoding/base64" "encoding/gob" "fmt" - "git.ophivana.moe/cat/fortify/internal/final" "os" "strings" "syscall" + "git.ophivana.moe/cat/fortify/internal" "git.ophivana.moe/cat/fortify/internal/util" ) @@ -20,7 +20,7 @@ func (a *App) launcherPayloadEnv() string { enc := base64.NewEncoder(base64.StdEncoding, r) if err := gob.NewEncoder(enc).Encode(a.command); err != nil { - final.Fatal("Error encoding launcher payload:", err) + internal.Fatal("Error encoding launcher payload:", err) } _ = enc.Close() -- cgit v1.3.1