feat: added working rendering with plugins
This commit is contained in:
parent
fbdaf218eb
commit
1ebea8cb73
7 changed files with 139 additions and 81 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue