Documentation ¶
Overview ¶
Package helpers contains manually written functions for transforming custom types. Such package should be written by end-user because plugin has no idea which types could be used. It generates just function names for non-standard types.
Index ¶
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func NullsTimePtrToTimePtr(nt *nulls.Time) *time.Time
- func NullsTimeToTime(nt nulls.Time) time.Time
- func NullsTimeToTimePtr(nt nulls.Time) *time.Time
- func StringToInt32(s string) int32
- func StringToInt64(s string) int64
- func TimePtrToNullsTime(t *time.Time) nulls.Time
- func TimePtrToNullsTimePtr(t *time.Time) *nulls.Time
- func TimeToNullsTime(t time.Time) nulls.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int32ToString ¶
func Int64ToString ¶
func StringToInt32 ¶
StringToInt32 converts string to int32. It doesn't return an error for now, and if string is not correct or value is aut of range of int32 it will return default int32 value which is 0.
func StringToInt64 ¶
StringToInt64 converts string to int63. For details see comments for StringToInt32 function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.