prototype

package
v0.0.0-...-e7d35d0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 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 Keyword

type Keyword struct {
	UpdatedAt *time.Time
	// contains filtered or unexported fields
}

Keyword 搜索关键字

func (*Keyword) Clone

func (k *Keyword) Clone() *Keyword

Clone 这里使用序列化与反序列化的方式深拷贝

type Keywords

type Keywords map[string]*Keyword

Keywords 关键字 map

func (Keywords) Clone

func (words Keywords) Clone(updatedWords []*Keyword) Keywords

Clone 复制一个新的 keywords updatedWords: 需要更新的关键词列表,由于从数据库中获取数据常常是数组的方式

Jump to

Keyboard shortcuts

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