conv

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MYSQL_TIME_FORMAT = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func ConvertBool

func ConvertBool(input sql.NullBool) (output *bool)

func ConvertFloat

func ConvertFloat(input sql.NullFloat64) float64

func ConvertFloatToLongStringNumber

func ConvertFloatToLongStringNumber(input float64) string

func ConvertInt

func ConvertInt(input sql.NullInt64) int64

func ConvertString

func ConvertString(input sql.NullString) (output string)

func ExtractIntFromString

func ExtractIntFromString(input string, defaultVal int64) int64

func FormatTimePointer

func FormatTimePointer(input *time.Time) interface{}

func StringerToJson

func StringerToJson(input fmt.Stringer) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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