gitea/modules/util
wxiaoguang 36c0840cf1
Merge template functions "dict/Dict/mergeinto" ()
One of the steps in 


Before there were 3 different but similar functions: dict/Dict/mergeinto

The code was just copied & pasted, no test.

This PR defines a new stable `dict` function, it covers all the 3 old
functions behaviors, only +160 -171


Future developers do not need to think about or guess the different dict
functions, just use one: `dict`

Why use `dict` but not `Dict`? Because there are far more `dict` than
`Dict` in code already ......
..
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 Introduce GiteaLocaleNumber custom element to handle number localization on pages. ()
truncate_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. ()
url.go Implement FSFE REUSE for golang files ()
util.go Merge template functions "dict/Dict/mergeinto" ()
util_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. ()