diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-01-10 17:27:55 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-01-10 17:27:55 +0500 |
| commit | a364d4330dfd34f953f64e90020f8b8d6f2e82c4 (patch) | |
| tree | db71d125f633832b130821f3aec07d4b714ab7bb /engine/Components/Packages/Validation.go | |
| parent | e6ccb74f77d0d03d33c422ca7dc942422074d7dd (diff) | |
World storage system change
Diffstat (limited to 'engine/Components/Packages/Validation.go')
| -rw-r--r-- | engine/Components/Packages/Validation.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/engine/Components/Packages/Validation.go b/engine/Components/Packages/Validation.go deleted file mode 100644 index 04428d2..0000000 --- a/engine/Components/Packages/Validation.go +++ /dev/null @@ -1,15 +0,0 @@ -package packages - -type Validatable interface { - // If the object is returned invalid this function should return the reason - IsValid() error -} - -// Reads object fron the file and validates it -func ReadValidJSONfromFile(fileLocation string, v Validatable) error { - var err = ReadJSONfromFile(fileLocation, v) - if err != nil { - return err - } - return v.IsValid() -} |
