mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-02 00:13:36 +05:00
Add file icons
plus some fixes
This commit is contained in:
parent
5fd8fc6573
commit
f0ad3afff9
5 changed files with 67 additions and 14 deletions
8
utils.go
8
utils.go
|
@ -26,3 +26,11 @@ func sizeToApproxHuman(s int64) string {
|
|||
|
||||
return fmt.Sprintf("%.1f KiB", v)
|
||||
}
|
||||
|
||||
func nvl(a1, a2 string) string {
|
||||
if a1 != "" {
|
||||
return a1
|
||||
}
|
||||
|
||||
return a2
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue