Move examples to examples dir, now LoadJsonFile() also returns err

* Move examples from cmd to examples dir
* Update Makefile
* LoadJsonFile() dies in-place on read or parse error which is not correct
* LoadJsonFile() wastes Instance map, now it returns its own map and error if any
This commit is contained in:
eleksir
2025-10-27 20:28:27 +03:00
parent 521ac9abc0
commit f2948d705a
9 changed files with 102 additions and 86 deletions

View File

@@ -0,0 +1,4 @@
{
"loglevel": "info",
"logfile": "/var/log/messages"
}