Switched from Dockmon to Beszel
This commit is contained in:
9
dockmon/stats-service/utils.go
Normal file
9
dockmon/stats-service/utils.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
// truncateID truncates an ID string to specified length
|
||||
func truncateID(id string, length int) string {
|
||||
if len(id) <= length {
|
||||
return id
|
||||
}
|
||||
return id[:length]
|
||||
}
|
||||
Reference in New Issue
Block a user