We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a0989 commit 9a96503Copy full SHA for 9a96503
modules/templates/helper.go
@@ -93,10 +93,8 @@ func NewFuncMap() []template.FuncMap {
93
"DateFmtShort": func(t time.Time) string {
94
return t.Format("Jan 02, 2006")
95
},
96
- "SizeFmt": func(s int64) string {
97
- return base.FileSize(s)
98
- },
99
- "List": List,
+ "SizeFmt": base.FileSize,
+ "List": List,
100
"SubStr": func(str string, start, length int) string {
101
if len(str) == 0 {
102
return ""
0 commit comments