Help us shape the future of Go! Take the 2026 Go Developer Survey

document

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Id        int64     `gorm:"primaryKey"`
	Title     string    `gorm:"type:varchar(255);not null;default:'';comment:Document Title"`
	Content   string    `gorm:"type:text;comment:Document Content"`
	Tags      string    `gorm:"type:varchar(255);not null;default:'';comment:Document Tags"`
	Show      *bool     `gorm:"type:tinyint(1);not null;default:1;comment:Show"`
	CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
	UpdatedAt time.Time `gorm:"comment:Update Time"`
}

func (Document) TableName

func (Document) TableName() string

Jump to

Keyboard shortcuts

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