data

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blogs = []Blog{
	{ID: 1, Title: "Hello World", CategoryID: 1},
	{ID: 2, Title: "Go Tips", CategoryID: 2},
	{ID: 3, Title: "Advanced Patterns", CategoryID: 2},
}
View Source
var Categories = []Category{
	{ID: 1, Name: "General"},
	{ID: 2, Name: "Programming"},
}

Functions

This section is empty.

Types

type Blog

type Blog struct {
	ID         int64  `db:"id"`
	Title      string `db:"title"`
	CategoryID int64  `db:"category_id"`
}

type Category

type Category struct {
	ID   int64  `db:"id"`
	Name string `db:"name"`
}

Jump to

Keyboard shortcuts

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