diff options
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() -} |
