example

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DTO1 added in v3.0.2

type DTO1 struct {
	ID   uint64 `json:"id"`
	Name string `json:"name"`
}

func NewDTO1 added in v3.0.2

func NewDTO1(model *Model) *DTO1

NewDTO1 generates new data transfer object (form 1) from Model

type Model added in v3.0.2

type Model struct {
	ID        uint64    `json:"id" db:"id"`
	Name      string    `json:"name" db:"name"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
}

func (*Model) SetCreatedAtNowUTC added in v3.0.2

func (model *Model) SetCreatedAtNowUTC()

SetCreatedAtNowUTC sets created at to time now in UTC

Jump to

Keyboard shortcuts

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