]> source.dussan.org Git - gitea.git/commit
Remove legacy `unknwon/com` package (#19298)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 1 Apr 2022 16:34:57 +0000 (00:34 +0800)
committerGitHub <noreply@github.com>
Fri, 1 Apr 2022 16:34:57 +0000 (00:34 +0800)
commit4f27c289472a4cfafb5a9b0e38e6a3413c30c562
tree4a9388cfaf2efe4e9d0ed0242736769ef7e3e083
parent4c5cb1e2f2c7a1fcc3b151192bd45bd1bbc090bd
Remove legacy `unknwon/com` package (#19298)

Follows: #19284
* The `CopyDir` is only used inside test code
* Rewrite `ToSnakeCase` with more test cases
* The `RedisCacher` only put strings into cache, here we use internal `toStr` to replace the legacy `ToStr`
* The `UniqueQueue` can use string as ID directly, no need to call `ToStr`
17 files changed:
cmd/manager_logging.go
contrib/pr/checkout.go
go.mod
integrations/integration_test.go
integrations/migration-test/migration_test.go
models/migrations/migrations_test.go
models/unittest/fscopy.go [new file with mode: 0644]
models/unittest/testdb.go
modules/cache/cache_redis.go
modules/context/csrf.go
modules/nosql/manager.go
modules/sync/unique_queue.go
modules/util/legacy.go
modules/util/legacy_test.go
modules/util/string.go [new file with mode: 0644]
modules/util/string_test.go [new file with mode: 0644]
services/webhook/webhook.go