datatype

package
v0.0.0-...-a61b3ab Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date time.Time

func (Date) GormDataType

func (Date) GormDataType() string

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

func (*Date) Scan

func (d *Date) Scan(value interface{}) error

func (*Date) String

func (d *Date) String() string

func (*Date) Time

func (d *Date) Time() time.Time

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(bs []byte) error

func (Date) Value

func (d Date) Value() (driver.Value, error)

type Pagination

type Pagination struct {
	CurrentPage  int `json:"current_page"`
	TotalPages   int `json:"total_pages"`
	PerPage      int `json:"per_page"`
	TotalEntries int `json:"total_entries"`
	From         int `json:"from"`
	To           int `json:"to"`
}

func (Pagination) New

func (Pagination) New(total_datas, page, size int) Pagination

Jump to

Keyboard shortcuts

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