types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeString  = "str"     // string
	TypeBit     = "bit"     // BitInt
	TypeUUID    = "uuid"    // UUID
	TypeDecimal = "decimal" // Decimal
	TypeInt     = "int"     // Int
)

Variables

This section is empty.

Functions

func EncodeWithTypes

func EncodeWithTypes(typeValues ...string) ([]byte, error)

Types

type BitInt

type BitInt int

func (BitInt) MarshalBinary

func (i BitInt) MarshalBinary() ([]byte, error)

func (*BitInt) UnmarshalBinary

func (i *BitInt) UnmarshalBinary(data []byte) error

type RawMessage

type RawMessage []byte

func (RawMessage) MarshalBinary

func (r RawMessage) MarshalBinary() ([]byte, error)

func (*RawMessage) Scan

func (r *RawMessage) Scan(src interface{}) error

func (*RawMessage) UnmarshalBinary

func (r *RawMessage) UnmarshalBinary(data []byte) error

func (RawMessage) Value

func (r RawMessage) Value() (driver.Value, error)

type Value

type Value struct {
	// contains filtered or unexported fields
}

func Decimal

func Decimal(v string) Value

func UUID

func UUID(v string) Value

func (Value) MarshalBinary

func (v Value) MarshalBinary() ([]byte, error)

Jump to

Keyboard shortcuts

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