miki

Miki: personal wiki with the fmd markup format
git clone https://wtenison.com/repo/miki.git
Log | Files | Refs | README | LICENSE

commit 021807273e420bb67352d6ad2841b11eaca42d8a
parent 08b14328180c44c1ac786074dd833fad921a7523
Author: weetat <wtenison@protonmail.com>
Date:   Wed, 26 Feb 2025 22:27:43 +0000

Fix ReadFileJSON ignoring its path argument

It always read sys/config.json no matter what file was passed in.

Diffstat:
Msrc/filesystem/files.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/filesystem/files.go b/src/filesystem/files.go @@ -12,7 +12,7 @@ var FilePatternJSON = regexp.MustCompile("^([a-zA-Z0-9.]+).json$") func ReadFileJSON(filePath string, outputDataContainer interface{}) error { - _fsData, _err := os.ReadFile("sys/config.json") + _fsData, _err := os.ReadFile(filePath) if _err != nil { return fmt.Errorf("_ERROR\tfilesystem:ReadFileJSON:os.ReadFile:%s:%s", filePath, _err.Error()) }