feat(crypt): customize filename_encoding
(#5148)
close #5109 close #5080
This commit is contained in:
@ -30,3 +30,13 @@ func SafeAtob(data string) (string, error) {
|
||||
}
|
||||
return string(bytes), err
|
||||
}
|
||||
|
||||
// GetNoneEmpty returns the first non-empty string, return empty if all empty
|
||||
func GetNoneEmpty(strArr ...string) string {
|
||||
for _, s := range strArr {
|
||||
if len(s) > 0 {
|
||||
return s
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user