update: deps
fix: sig waiting
fix: watcher
fix: nil pointer panic
This commit is contained in:
Yuzuki616
2025-04-13 17:31:18 +09:00
parent c8d14af968
commit 9206546063
8 changed files with 82 additions and 31 deletions

View File

@@ -1,6 +1,9 @@
package conf
import "github.com/goccy/go-json"
import (
"fmt"
"github.com/goccy/go-json"
)
type Core struct {
Name string `json:"Name,omitempty"`
@@ -13,7 +16,7 @@ type _core Core
func (c *Core) UnmarshalJSON(data []byte) error {
err := json.Unmarshal(data, (*_core)(c))
if err != nil {
return err
return fmt.Errorf("failed to unmarshal core: %v", err)
}
if len(c.Config) == 0 {
c.Config = data