Documentation
¶
Index ¶
Constants ¶
View Source
const DatabaseValueDelimiter = ","
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PseudorandomWord ¶
type PseudorandomWord struct { // 随机数序列的种子 Seed int64 `json:"seed"` // 是第多少个单词 Index int64 `json:"index"` // 这个单词是啥 Text string `json:"text"` }
PseudorandomWord 伪随机数序列的位置
func NewPseudorandomWordFromDatabaseKeyValue ¶
func NewPseudorandomWordFromDatabaseKeyValue(key, value []byte) (*PseudorandomWord, error)
func (*PseudorandomWord) GetDatabaseKey ¶
func (x *PseudorandomWord) GetDatabaseKey() []byte
func (*PseudorandomWord) GetDatabaseValue ¶
func (x *PseudorandomWord) GetDatabaseValue() []byte
func (*PseudorandomWord) SetDatabaseKey ¶
func (x *PseudorandomWord) SetDatabaseKey(key []byte)
func (*PseudorandomWord) SetDatabaseValue ¶
func (x *PseudorandomWord) SetDatabaseValue(value []byte) error
func (*PseudorandomWord) String ¶
func (x *PseudorandomWord) String() string
Click to show internal directories.
Click to hide internal directories.