Initial open source release

This commit is contained in:
Ronni Skansing
2025-08-21 16:14:09 +02:00
commit 11cf01f08e
488 changed files with 97180 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package utils
import (
"fmt"
"github.com/oapi-codegen/nullable"
)
// NullableToString converts a nullable stringer to a string
func NullableToString[T fmt.Stringer](x nullable.Nullable[T]) string {
if !x.IsSpecified() || x.IsNull() {
return ""
}
return x.MustGet().String()
}