50 lines
909 B
Go
50 lines
909 B
Go
package stringx
|
|
|
|
import (
|
|
"unsafe"
|
|
|
|
"gitee.com/timedb/wheatCache/structure"
|
|
)
|
|
|
|
type StringxInt struct {
|
|
val int
|
|
}
|
|
|
|
type StringxFloat struct {
|
|
val float64
|
|
}
|
|
|
|
type Stringx struct {
|
|
ValFloat StringxFloat
|
|
ValInt StringxInt
|
|
ValString string
|
|
}
|
|
|
|
func (s *Stringx) SizeByte() int64 {
|
|
size := unsafe.Sizeof(s)
|
|
return int64(size)
|
|
}
|
|
|
|
// RollBack 事务相关, V2 实现
|
|
func (s *Stringx) RollBack() error {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
// Begin 事务相关, V2 实现
|
|
func (s *Stringx) Begin() error {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
// RollBack 事务相关, V2 实现
|
|
func (s *Stringx) Comment() error {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (s *Stringx) ParseCommend(comm structure.ParseComm) ([]string, error) {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (s *Stringx) Encode() ([]byte, error) {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|