copy

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Copy

type Copy struct {
	mixin.Model[Copy]
	AdIntegration

	Type Type   `json:"type" orm:"default:content"`
	Text string `json:"text" datastore:",noindex"`

	ParentCopyId string `json:"parentCopyId"`

	// Only for filters and searches, don't rely on this after you get it out
	// of the db. Always check m.ParentCopyId != "".
	IsParent bool `json:"isParent"`
}

func New

func New(db *datastore.Datastore) *Copy

func (Copy) Fork

func (m Copy) Fork() *Copy

func (Copy) GetCopySearchFieldAndIds

func (m Copy) GetCopySearchFieldAndIds() (string, []string)

func (Copy) GetParentCopyId

func (m Copy) GetParentCopyId() string

func (*Copy) Load

func (m *Copy) Load(ps []datastore.Property) (err error)

func (*Copy) Save

func (m *Copy) Save() (ps []datastore.Property, err error)

type Type

type Type string
const (
	HeadlineType Type = "headline"
	ContentType  Type = "content"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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