package
0.0.0-20250225133122-0516d5b855ff
Repository: https://github.com/domonda/go-types.git
Documentation: pkg.go.dev

# Functions

JoinTrimmedStrings joins trimmed strings with the passed separator between them.
No description provided by the author
SplitArray splits an SQL or JSON array into its top level elements.
SQLArrayLiteral joins the passed strings as an SQL array literal A nil slice will produce NULL, pass an empty non nil slice to get the empty SQL array literal {}.
TrimmedStringf formats a string using fmt.Sprintf and returns it as TrimmedString.
TrimmedStringFrom trims the passed str and returns it as TrimmedString.

# Type aliases

FloatArray implements the sql.Scanner and driver.Valuer interfaces for a slice of float64.
IntArray implements the sql.Scanner and driver.Valuer interfaces for a slice of int64.
JSON is a []byte slice containing JSON text.
NullBoolArray implements the sql.Scanner and driver.Valuer interfaces for a slice of sql.NullBool.
StringArray implements the sql.Scanner, driver.Valuer, and encoding/json.Marshaler interfaces for a slice of strings.
TrimmedString is a string type where all marshaller and unmarshaller will trim whitespace first before returning or using a value.