We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b0c0f commit 1395484Copy full SHA for 1395484
README.md
@@ -12,12 +12,20 @@ package main
12
13
import (
14
validator "github.com/gidsi/go-spaceapi-validator"
15
- fmt
+ "fmt"
16
+ "strconv"
17
)
18
19
func main() {
- fmt.Println("Validate with following commit: " + validator.CommitHash)
20
- validator.Validate(/* spaceapi json you want to validate */)
+ fmt.Println("Validate with following commigithub.com/gidsi/go-spaceapi-validatort: " + validator.CommitHash)
21
+ result, err := validator.Validate(`{}`/* spaceapi json you want to validate */)
22
+
23
+ if err != nil {
24
+ panic(err)
25
+ }
26
27
+ fmt.Println("Provided data is valid: " + strconv.FormatBool(result.Valid))
28
+ fmt.Println(result.Errors)
29
}
30
```
31
0 commit comments