1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-30 04:31:28 +00:00
Beego/vendor/github.com/siddontang/ledisdb/store/driver/slice.go

22 lines
230 B
Go
Raw Normal View History

2018-11-09 04:37:28 +00:00
package driver
type ISlice interface {
Data() []byte
Size() int
Free()
}
type GoSlice []byte
func (s GoSlice) Data() []byte {
return []byte(s)
}
func (s GoSlice) Size() int {
return len(s)
}
func (s GoSlice) Free() {
}