feat: added working rendering with plugins

This commit is contained in:
David Allen 2025-08-26 22:11:17 -06:00
parent fbdaf218eb
commit 1ebea8cb73
Signed by: towk
GPG key ID: 0430CDBE22619155
7 changed files with 139 additions and 81 deletions

View file

@ -3,7 +3,7 @@ package storage
import "fmt"
type MemoryStorage struct {
Data map[string]any
Data map[string]any `json:"data"`
}
func (ms *MemoryStorage) Init() error {
@ -20,7 +20,7 @@ func (ms *MemoryStorage) Get(k string) (any, error) {
if ok {
return v, nil
}
return nil, fmt.Errorf("value does not exist")
return nil, fmt.Errorf("value '%s' does not exist", k)
}
func (ms *MemoryStorage) Set(k string, v any) error {