Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur White committed Jul 23, 2017
1 parent 722e7db commit 1373d6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Package [check](https://godoc.org/github.com/gowww/check) provides request form
userChecker := check.Checker{
"email": {check.Required, check.Email, check.Unique(db, "users", "email", "?")},
"phone": {check.Phone},
"picture": {check.MaxFileSize(5000), check.Image},
"picture": {check.MaxFileSize(5000000), check.Image},
}
```

Expand Down Expand Up @@ -112,10 +112,10 @@ Function | Usage
[Latitude](https://godoc.org/github.com/gowww/check#Latitude) | `Latitude` | `notLatitude`, `notNumber`
[Longitude](https://godoc.org/github.com/gowww/check#Longitude) | `Longitude` | `notLongitude`, `notNumber`
[Max](https://godoc.org/github.com/gowww/check#Max) | `Max(1)` | `max:1`, `notNumber`
[MaxFileSize](https://godoc.org/github.com/gowww/check#MaxFileSize) | `MaxFileSize(5000)` | `maxFileSize:1`
[MaxFileSize](https://godoc.org/github.com/gowww/check#MaxFileSize) | `MaxFileSize(5000000)` | `maxFileSize:5000000`
[MaxLen](https://godoc.org/github.com/gowww/check#MaxLen) | `MaxLen(1)` | `maxLen:1`, `notNumber`
[Min](https://godoc.org/github.com/gowww/check#Min) | `Min(1)` | `min:1`, `notNumber`
[MinFileSize](https://godoc.org/github.com/gowww/check#MinFileSize) | `MinFileSize(10)` | `minFileSize:1`
[MinFileSize](https://godoc.org/github.com/gowww/check#MinFileSize) | `MinFileSize(10)` | `minFileSize:10`
[MinLen](https://godoc.org/github.com/gowww/check#MinLen) | `MinLen(1)` | `minLen:1`, `notNumber`
[Number](https://godoc.org/github.com/gowww/check#Number) | `Number` | `notNumber`
[Phone](https://godoc.org/github.com/gowww/check#Phone) | `Phone` | `notPhone`
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func Example() {
checker := check.Checker{
"email": {check.Required, check.Email},
"phone": {check.Phone},
"picture": {check.MaxFileSize(5000), check.Image},
"picture": {check.MaxFileSize(5000000), check.Image},
}

errs := checker.CheckValues(map[string][]string{
Expand Down

0 comments on commit 1373d6f

Please sign in to comment.