This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/util
René Schaar 6859b69198
Refactor SecToTime() function (#18863)
- Add helper method to reduce redundancy
- Expand the scope from displaying days to years
- Reduce irrelevance by not displaying small units (hours, minutes, seconds) when bigger ones apply (years)
2022-02-28 23:57:20 +01:00
..
compare.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
copy.go
io.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
net.go Only allow webhook to send requests to allowed hosts (#17482) 2021-11-01 16:39:52 +08:00
paginate.go
paginate_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
path.go Include folders into size cost (#18158) 2022-01-03 23:24:12 +00:00
path_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
remove.go
sanitize.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
sanitize_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
sec_to_time.go Refactor SecToTime() function (#18863) 2022-02-28 23:57:20 +01:00
sec_to_time_test.go Refactor SecToTime() function (#18863) 2022-02-28 23:57:20 +01:00
shellquote.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
shellquote_test.go
timer.go
truncate.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
truncate_test.go Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 2021-12-09 05:41:17 +00:00
url.go
util.go Fix non-ASCII search on database (#18437) 2022-02-01 20:59:25 +08:00
util_test.go Fix non-ASCII search on database (#18437) 2022-02-01 20:59:25 +08:00