utils

package
v0.0.0-...-dfaae00 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(dest interface{}, src interface{}) error

func RandSeq

func RandSeq(n int) string

Types

type NullUUID

type NullUUID struct {
	UUID  UUID
	Valid bool
}

func NewNullUUID

func NewNullUUID() NullUUID

func (*NullUUID) Scan

func (u *NullUUID) Scan(value interface{}) error

func (NullUUID) Value

func (u NullUUID) Value() (driver.Value, error)

type UUID

type UUID []byte

func NewUUID

func NewUUID() UUID

func Parse

func Parse(s string) UUID

func (UUID) MarshalText

func (u UUID) MarshalText() ([]byte, error)

func (*UUID) Scan

func (u *UUID) Scan(src interface{}) error

func (UUID) String

func (u UUID) String() string

func (*UUID) UnmarshalText

func (u *UUID) UnmarshalText(text []byte) error

func (UUID) Value

func (u UUID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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