2023-11-02 09:29:33 CST W44D4

This commit is contained in:
aggresss
2023-11-02 09:29:33 +08:00
parent 9dab5c40ec
commit b9b515b939
3 changed files with 8 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ func AvXIfNull[T any](p, x *T) *T {
return x
}
// AvStringIfNull
func AvStringIfNull(p, x string) string {
if len(p) != 0 {
return p