Skip to content

Commit

Permalink
Fixed basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
fn-code committed May 12, 2019
1 parent 09f05bc commit cd45941
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example/basic_validation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import (
)

func main() {
val, err := govals.Length(1000, 2, 10)
ok, err := govals.Length(1000, 2, 10)
if err != nil {
log.Println(err)
}
fmt.Println(val)
val2, err := govals.RuneLength("ludin nento", 20, 30)
fmt.Println(ok)
ok, err = govals.RuneLength("ludin nento", 20, 30)
if err != nil {
log.Println(err)
}
fmt.Println(val2)
fmt.Println(ok)

val3, err := govals.Email("ludynn77654.com")
ok, err = govals.Email("ludynn77654.com")
if err != nil {
log.Println(err)
}
fmt.Println(val3)
fmt.Println(ok)

}

0 comments on commit cd45941

Please sign in to comment.