utils

package
v0.0.0-...-d814eb9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonArray

type JsonArray[T any] []T

JsonArray Generic type to handle arrays of any primitive type

func (*JsonArray[T]) Scan

func (ja *JsonArray[T]) Scan(value interface{}) error

Scan - Convert a JSON string or byte slice from the database into a JsonArray

func (JsonArray[T]) Value

func (ja JsonArray[T]) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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