Skip to content

Commit

Permalink
doc: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentCosmic committed Jun 29, 2023
1 parent c587765 commit f3c899d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ validating wrongly.
## Examples

To define your own validator, you must implement the
[Validator](https://godoc.org/github.com/AgentCosmic/xvalid#Validator) interface. For example,, see any of the
[Validator](https://godoc.org/github.com/AgentCosmic/xvalid#Validator) interface. For example, see any of the
validators in [validators.go](https://github.com/AgentCosmic/xvalid/blob/master/validators.go)

Define rules and validate objects:

```
```go
// Store model
type Store struct {
Name string `json:"name"`
Expand Down Expand Up @@ -78,7 +78,7 @@ if err != nil {

Export rules as JSON:

```
```go
func createValidationMap(model ...ruleHolder) map[string]interface{} {
rules := make(map[string]interface{})
for _, m := range model {
Expand Down

0 comments on commit f3c899d

Please sign in to comment.