gitea/modules/util
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions ()
Since  has conflicts with latest commits, this PR is my proposal
for fixing 

Details are in the comments

And refactor the `modules/options` module, to make it always use
"filepath" to access local files.

Benefits:

* No need to do `util.CleanPath(strings.ReplaceAll(p, "\\", "/"))),
"/")` any more (not only one before)
* The function behaviors are clearly defined
..
filebuffer Implement FSFE REUSE for golang files ()
error.go Use ErrInvalidArgument in packages ()
file_unix.go Implement FSFE REUSE for golang files ()
file_unix_test.go Implement FSFE REUSE for golang files ()
file_windows.go Implement FSFE REUSE for golang files ()
io.go Improve checkIfPRContentChanged ()
keypair.go Add Chef package registry ()
keypair_test.go Use minio/sha256-simd for accelerated SHA256 ()
legacy.go Implement FSFE REUSE for golang files ()
legacy_test.go Implement FSFE REUSE for golang files ()
pack.go Add support for incoming emails ()
pack_test.go Add support for incoming emails ()
paginate.go Implement FSFE REUSE for golang files ()
paginate_test.go Implement FSFE REUSE for golang files ()
path.go Introduce path Clean/Join helper functions ()
path_test.go Introduce path Clean/Join helper functions ()
remove.go Implement FSFE REUSE for golang files ()
sanitize.go Implement FSFE REUSE for golang files ()
sanitize_test.go Implement FSFE REUSE for golang files ()
sec_to_time.go Implement FSFE REUSE for golang files ()
sec_to_time_test.go Implement FSFE REUSE for golang files ()
shellquote.go Implement FSFE REUSE for golang files ()
shellquote_test.go Implement FSFE REUSE for golang files ()
slice.go Improve utils of slices ()
slice_test.go Improve utils of slices ()
string.go Implement FSFE REUSE for golang files ()
string_test.go Implement FSFE REUSE for golang files ()
timer.go Implement FSFE REUSE for golang files ()
truncate.go Implement FSFE REUSE for golang files ()
truncate_test.go Implement FSFE REUSE for golang files ()
url.go Implement FSFE REUSE for golang files ()
util.go Implement FSFE REUSE for golang files ()
util_test.go Implement FSFE REUSE for golang files ()