Created
Some checks failed
Go / build (push) Failing after 7s

This commit is contained in:
scheibling
2025-04-08 19:16:39 +02:00
commit b4eb50ab55
63 changed files with 7333 additions and 0 deletions

18
nullx/string.go Normal file
View File

@@ -0,0 +1,18 @@
package nullx
import (
"gopkg.in/guregu/null.v4"
"strings"
)
func StringFrom(s string) null.String {
s = strings.TrimSpace(s)
if s == "" {
return NullString()
}
return null.NewString(s, true)
}
func NullString() null.String {
return null.NewString("", false)
}