Documentation ¶
Index ¶
- func Difference(a, b []int32) []int32
- func GenerateOTP(length int) (string, error)
- func GenerateOrderNomer() (string, error)
- func IfElse(condition bool, a interface{}, b interface{}) interface{}
- func InsertMultiple(queryInsert string, id int32, vals []int32) (string, []interface{})
- func NewNullBool(s bool) sql.NullBool
- func NewNullString(s string) sql.NullString
- func ReplaceQueryParams(namedQuery string, params map[string]interface{}) (string, []interface{})
- func ReplaceSQL(old, searchPattern string) string
- func ValMultipleQuery(query string, vals []int32) (string, []interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
func GenerateOTP ¶
func GenerateOrderNomer ¶
func IfElse ¶
func IfElse(condition bool, a interface{}, b interface{}) interface{}
IfElse evaluates a condition, if true returns the first parameter otherwise the second
func InsertMultiple ¶
func NewNullBool ¶
func NewNullString ¶
func NewNullString(s string) sql.NullString
func ReplaceQueryParams ¶
replace Query example LIMIT $1 -> LIMIT :limit
func ReplaceSQL ¶
func ValMultipleQuery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.