From c9df5a7aceaecd7d2f022a6ebccc7b8a9909059b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 15 Feb 2024 22:52:11 -0600 Subject: start deprecating and modernizing this code --- structs.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index c250fcf..bf31186 100644 --- a/structs.go +++ b/structs.go @@ -27,7 +27,8 @@ type File struct { Fnbreader *nbreader.NBReader // := nbreader.NewNBReader(readOUT, 1024) } -type Shell struct { +// early code playground +type OldShell struct { Cmdline string Process *exec.Cmd Done bool @@ -45,9 +46,9 @@ type Shell struct { Stderr *File } -// default values for Shell -func New() *Shell { - var tmp Shell +// default values for OldShell +func New() *OldShell { + var tmp OldShell tmp.Done = false tmp.Fail = false -- cgit v1.2.3