gohelpers

package module
v0.0.0-...-9264381 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDatabase

func ConnectToDatabase() (*gorm.DB, error)

Types

type APIDate

type APIDate struct {
	time.Time
}

func (APIDate) GormDBDataType

func (APIDate) GormDBDataType(db *gorm.DB, field *schema.Field) string

GormDBDataType implements the schema.GormDBDataTypeInterface interface

func (APIDate) GormDataType

func (APIDate) GormDataType() string

GormDataType implements the gorm.GormDataTypeInterface interface

func (APIDate) MarshalJSON

func (ad APIDate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (*APIDate) Scan

func (ad *APIDate) Scan(value interface{}) error

Scan implements the sql.Scanner interface

func (*APIDate) UnmarshalJSON

func (ad *APIDate) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

func (APIDate) Value

func (ad APIDate) Value() (driver.Value, error)

Value implements the driver.Valuer interface

Jump to

Keyboard shortcuts

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