Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a7e60c93
authored
2015-03-26 20:23:00 +0100
by
Donal Byrne
Committed by
astaxie
2015-05-25 09:10:35 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set ErrorsMap to nil in Validation.Clear function
1 parent
5b1705b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
validation/validation.go
validation/validation.go
View file @
a7e60c9
...
...
@@ -107,6 +107,7 @@ type Validation struct {
// Clean all ValidationError.
func
(
v
*
Validation
)
Clear
()
{
v
.
Errors
=
[]
*
ValidationError
{}
v
.
ErrorsMap
=
nil
}
// Has ValidationError nor not.
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment