Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go
This commit is contained in:
Regan Yue
2022-07-08 21:19:52 +08:00
committed by GitHub
parent 2c506f7c2b
commit 49be2581d1
10 changed files with 56 additions and 55 deletions

View File

@@ -144,7 +144,7 @@ func avg(items []time.Duration) time.Duration {
return time.Duration(int64(sum) / int64(len(items)))
}
// format bytes number friendly
// toH format bytes number friendly
func toH(bytes uint64) string {
switch {
case bytes < 1024: