govalidator
govalidator copied to clipboard
use path/filepath instead of path
Q | A |
---|---|
Documentation | no |
Bugfix | yes |
BC Break | no |
New Feature | no |
RFC | no |
QA | no |
Description
path/filepath should be used for this.
When testing, path.Clean(path.Base("../../../Hello World!.txt"))
does not return your expected on Windows. Also calling path.Clean is not required.
hey @mattn . Owner of this package disappeared. I forked it and ready to support it in future. You can check it here: https://github.com/sergeyglazyrindev/govalidator , make pull request and I merge it and make new release.