Skip to content

Commit

Permalink
fixed: md files
Browse files Browse the repository at this point in the history
  • Loading branch information
rezakhademix committed Mar 10, 2024
1 parent ce8420d commit e3aa914
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@

## v1.0.0 (2024-03-08)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.20...v1.0.0
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.20...v1.0.0

## v0.0.20 (2024-03-07)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.19...v0.0.20
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.19...v0.0.20

## v0.0.19 (2024-03-07)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.18...v0.0.19
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.18...v0.0.19

## v0.0.18 (2024-03-07)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.17...v0.0.18
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.17...v0.0.18

## v0.0.17 (2024-03-07)

- History of changes: see https://github.com/rezakhademix/validator/compare/0.0.16...v0.0.17
- History of changes: see https://github.com/rezakhademix/govalidator/compare/0.0.16...v0.0.17

## v0.0.16 (2024-03-06)

- History of changes: see https://github.com/rezakhademix/validator/compare/0.0.15...0.0.16
- History of changes: see https://github.com/rezakhademix/govalidator/compare/0.0.15...0.0.16

## v0.0.15 (2024-03-05)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.14...0.0.15
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.14...0.0.15

## v0.0.14 (2024-03-04)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.13...v0.0.14
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.13...v0.0.14

## v0.0.13 (2024-03-04)

- History of changes: see https://github.com/rezakhademix/validator/compare/v0.0.12...v0.0.13
- History of changes: see https://github.com/rezakhademix/govalidator/compare/v0.0.12...v0.0.13

## v0.0.12 (2024-03-03)

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
2. Download the sources and switch the working directory:

```bash
go get github.com/rezakhademix/validator
go get github.com/rezakhademix/govalidator
```

## Submitting a Pull Request
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/rezakhademix/govalidator.svg)](https://pkg.go.dev/github.com/rezakhademix/govalidator) [![Go Report Card](https://goreportcard.com/badge/github.com/rezakhademix/govalidator)](https://goreportcard.com/report/github.com/rezakhademix/govalidator) [![codecov](https://codecov.io/gh/rezakhademix/govalidator/graph/badge.svg?token=BDWNVIC670)](https://codecov.io/gh/rezakhademix/govalidator) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## GOValidator
## GoValidator

This is a Golang Validator package without any type assertion or reflection that provides data validation.

Expand Down Expand Up @@ -53,7 +53,7 @@ go get github.com/rezakhademix/govalidator
var user User
_ := c.ShouldBind(&user) // error ignored for simplicity
v := gogovalidator.New()
v := govalidator.New()
v.MaxString(user.name, "first_name", "please fill first_name field") // with custom field name and custom validation message
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/rezakhademix/validator
module github.com/rezakhademix/govalidator

go 1.22.0

Expand Down
14 changes: 7 additions & 7 deletions min_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func Test_MinInt(t *testing.T) {
expectedMsg string
}{
{
name: "test integer value of `2` will pass if the govalidator minimum acceptable value is 1",
name: "test integer value of `2` will pass if the validator minimum acceptable value is 1",
field: "number",
value: 2,
min: 1,
Expand All @@ -26,7 +26,7 @@ func Test_MinInt(t *testing.T) {
expectedMsg: "",
},
{
name: "test integer value of `3` won't pass if the govalidator minimum acceptable value is 1",
name: "test integer value of `3` won't pass if the validator minimum acceptable value is 1",
field: "score",
value: 3,
min: 10,
Expand All @@ -35,7 +35,7 @@ func Test_MinInt(t *testing.T) {
expectedMsg: "score should be more than 10",
},
{
name: "test integer value of `17` won't pass if the govalidator minimum acceptable value is 18",
name: "test integer value of `17` won't pass if the validator minimum acceptable value is 18",
field: "age",
value: 17,
min: 18,
Expand Down Expand Up @@ -76,7 +76,7 @@ func Test_MinFloat(t *testing.T) {
expectedMsg string
}{
{
name: "test float value of `2.5` will pass if the govalidator minimum acceptable value is 1.5",
name: "test float value of `2.5` will pass if the validator minimum acceptable value is 1.5",
field: "score",
value: 2.5,
min: 1.5,
Expand All @@ -85,7 +85,7 @@ func Test_MinFloat(t *testing.T) {
expectedMsg: "",
},
{
name: "test float value of `21` will pass if the govalidator minimum acceptable value is 11",
name: "test float value of `21` will pass if the validator minimum acceptable value is 11",
field: "score",
value: 21,
min: 11,
Expand All @@ -94,7 +94,7 @@ func Test_MinFloat(t *testing.T) {
expectedMsg: "",
},
{
name: "test float value of `9.75` won't pass if the govalidator minimum acceptable value is 10",
name: "test float value of `9.75` won't pass if the validator minimum acceptable value is 10",
field: "goal",
value: 9.75,
min: 10,
Expand All @@ -103,7 +103,7 @@ func Test_MinFloat(t *testing.T) {
expectedMsg: "goal should be more than 10",
},
{
name: "test float value of `11.6` won't pass if the govalidator minimum acceptable value is 121.1",
name: "test float value of `11.6` won't pass if the validator minimum acceptable value is 121.1",
field: "number",
value: 11.6,
min: 121.1,
Expand Down

0 comments on commit e3aa914

Please sign in to comment.