From 3dc3a759673af2ca6aa2f675332734346707caee Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 17 Aug 2025 11:39:29 -0400 Subject: [PATCH] Bump Go to v1.24.6; update documentation --- core/edit.go | 2 ++ go.mod | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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