diff --git a/core/edit.go b/core/edit.go index df22923..e92866b 100644 --- a/core/edit.go +++ b/core/edit.go @@ -8,6 +8,8 @@ import ( ) // GetOldEntryData decrypts and returns old entry data (with all required lines present). +// This is a wrapper around the DecryptFileToSlice function that ensures all required lines are present in the returned slice. +// This makes it ideal for editing entries, as it guarantees at least a baseline slice length. func GetOldEntryData(targetLocation string, field int) ([]string, error) { // ensure targetLocation exists and is a file _, err := back.TargetIsFile(targetLocation, true) diff --git a/go.mod b/go.mod index 6afbe20..3aed598 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/rwinkhart/libmutton -go 1.24.5 +go 1.24.6 require ( github.com/pkg/sftp v1.13.9