util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInt64ToTime

func ConvertInt64ToTime(x int64) time.Time

func ConvertInterfaceToStruct

func ConvertInterfaceToStruct(x interface{}) (*structpb.Struct, error)

protobuf

func ConvertNullInt64ToInt64

func ConvertNullInt64ToInt64(x sql.NullInt64) int64

func ConvertNullStringToString

func ConvertNullStringToString(x sql.NullString) string

func ConvertNullUUIDToString

func ConvertNullUUIDToString(x uuid.NullUUID) string

func ConvertStructToJSONText

func ConvertStructToJSONText(x *structpb.Struct) (types.JSONText, error)

sqlx

func ConvertTimeToInt64

func ConvertTimeToInt64(x time.Time) int64

std

func ConvertUUIDToString

func ConvertUUIDToString(x uuid.UUID) string

uuid

func ConvertUint8ToUInt32

func ConvertUint8ToUInt32(x uint8) uint32

func ConvertUint8ToUInt64

func ConvertUint8ToUInt64(x uint8) uint64

Types

type Order

type Order struct {
	Direction OrderDirection
	Field     string
}

type OrderDirection

type OrderDirection string
const (
	OrderDirectionASC  OrderDirection = "ASC"
	OrderDirectionDESC OrderDirection = "DESC"
)

Jump to

Keyboard shortcuts

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