asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.03k stars 555 forks source link

use path/filepath instead of path #457

Open mattn opened 2 years ago

mattn commented 2 years ago
Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

path/filepath should be used for this.

mattn commented 2 years ago

When testing, path.Clean(path.Base("../../../Hello World!.txt")) does not return your expected on Windows. Also calling path.Clean is not required.

sergeyglazyrindev commented 2 years ago

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.