examples

package
v0.0.0-...-d63d437 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	ID          string    `sql:"id,primary"`
	Name        string    `sql:"name"`
	Description string    `sql:"description"`
	Category    *string   `sql:"category"`
	Price       float64   `sql:"price"`
	Stock       int       `sql:"stock"`
	CreatedAt   time.Time `sql:"created_at"`
}

func (*Product) TableName

func (p *Product) TableName() string

type User

type User struct {
	Key  int    `sql:"user_key,primary"`
	Name string `sql:"username"`
	Age  int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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