helpers

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32ToString added in v1.0.3

func Int32ToString(i int32) string

func Int64ToString added in v1.0.3

func Int64ToString(i int64) string

func NullsTimePtrToTimePtr

func NullsTimePtrToTimePtr(nt *nulls.Time) *time.Time

func NullsTimeToTime

func NullsTimeToTime(nt nulls.Time) time.Time

func NullsTimeToTimePtr

func NullsTimeToTimePtr(nt nulls.Time) *time.Time

func StringToInt32 added in v1.0.3

func StringToInt32(s string) int32

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 added in v1.0.3

func StringToInt64(s string) int64

StringToInt64 converts string to int63. For details see comments for StringToInt32 function.

func TimePtrToNullsTime

func TimePtrToNullsTime(t *time.Time) nulls.Time

func TimePtrToNullsTimePtr

func TimePtrToNullsTimePtr(t *time.Time) *nulls.Time

func TimeToNullsTime

func TimeToNullsTime(t time.Time) nulls.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL