initial commit - from neko open source repository..

This commit is contained in:
Miroslav Šedivý 2020-10-22 16:54:50 +02:00
commit 56de805f54
66 changed files with 5498 additions and 0 deletions

10
internal/utils/json.go Normal file
View file

@ -0,0 +1,10 @@
package utils
import "encoding/json"
func Unmarshal(in interface{}, raw []byte, callback func() error) error {
if err := json.Unmarshal(raw, &in); err != nil {
return err
}
return callback()
}