Adding the challenge 0201
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package db0201
|
||||
|
||||
type CellType uint8
|
||||
|
||||
const (
|
||||
TypeI64 CellType = 1
|
||||
TypeStr CellType = 2
|
||||
)
|
||||
|
||||
type Cell struct {
|
||||
Type CellType
|
||||
I64 int64
|
||||
Str []byte
|
||||
}
|
||||
|
||||
func (cell *Cell) Encode(toAppend []byte) []byte
|
||||
|
||||
func (cell *Cell) Decode(data []byte) (rest []byte, err error)
|
||||
|
||||
// QzBQWVJJOUhU https://trialofcode.org/
|
||||
Reference in New Issue
Block a user