typ

package
v0.0.0-...-39e3969 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array[T any] []T

func (Array[T]) GormDataType

func (Array[T]) GormDataType() string

GormDataType gorm common data type

func (Array[T]) GormValue

func (l Array[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*Array[T]) Scan

func (l *Array[T]) Scan(value interface{}) error

Scan scan value into JSONType[T], implements sql.Scanner interface

func (Array[T]) Value

func (l Array[T]) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type ArrayList

type ArrayList[T comparable] []T

func (ArrayList[T]) Array

func (l ArrayList[T]) Array() []T

func (*ArrayList[T]) Clear

func (l *ArrayList[T]) Clear()

func (ArrayList[T]) GormDataType

func (ArrayList[T]) GormDataType() string

GormDataType gorm common data type

func (ArrayList[T]) GormValue

func (l ArrayList[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (ArrayList[T]) Index

func (l ArrayList[T]) Index(ele T) int

func (ArrayList[T]) Length

func (l ArrayList[T]) Length() int

func (*ArrayList[T]) Push

func (l *ArrayList[T]) Push(ele ...T) *ArrayList[T]

func (*ArrayList[T]) Remove

func (l *ArrayList[T]) Remove(eles ...T)

func (*ArrayList[T]) Scan

func (l *ArrayList[T]) Scan(value interface{}) error

Scan scan value into JSONType[T], implements sql.Scanner interface

func (ArrayList[T]) String

func (l ArrayList[T]) String() string

func (ArrayList[T]) Unique

func (l ArrayList[T]) Unique() ArrayList[T]

func (ArrayList[T]) Value

func (l ArrayList[T]) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type DateTime

type DateTime string

func (*DateTime) Scan

func (dt *DateTime) Scan(value interface{}) error

func (DateTime) Value

func (dt DateTime) Value() (driver.Value, error)

type H

type H = Hash

type Hash

type Hash map[string]interface{}

Jump to

Keyboard shortcuts

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