gitea/modules/util
Oleksandr Redko 1761459ebc
Refactor to use UnsafeStringToBytes ()
The PR replaces all `goldmark/util.BytesToReadOnlyString` with
`util.UnsafeBytesToString`, `goldmark/util.StringToReadOnlyBytes` with
`util.UnsafeStringToBytes`. This removes one `TODO`.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
filebuffer Add `io.Closer` guidelines ()
rotatingfilewriter Replace `interface{}` with `any` ()
color.go Fix project column title overflow ()
color_test.go Fix and rewrite contrast color calculation, fix project-related bugs ()
error.go Replace `interface{}` with `any` ()
file_unix.go
file_unix_test.go
file_windows.go
io.go Azure blob storage support ()
io_test.go Fix profile render when the README.md size is larger than 1024 bytes ()
keypair.go Enable `unparam` linter ()
keypair_test.go Use `crypto/sha256` ()
legacy.go
legacy_test.go
pack.go Replace `interface{}` with `any` ()
pack_test.go
paginate.go Replace `interface{}` with `any` ()
paginate_test.go
path.go Upgrade to golangci-lint@v1.55.0 ()
path_test.go
remove.go
sanitize.go Refactor to use UnsafeStringToBytes ()
sanitize_test.go
sec_to_time.go Store and use seconds for timeline time comments ()
sec_to_time_test.go
shellquote.go
shellquote_test.go
slice.go Performance improvements for pull request list page ()
slice_test.go Replace `util.SliceXxx` with `slices.Xxx` ()
string.go Refactor to use UnsafeStringToBytes ()
string_test.go
timer.go
timer_test.go
truncate.go Add ability to set multiple redirect URIs in OAuth application UI ()
truncate_test.go
url.go Add `RemoteAddress` to mirrors ()
util.go Clean up log messages ()
util_test.go Enable more `revive` linter rules ()