mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
gofmt
This commit is contained in:
parent
da6d48abe9
commit
dcc5c661e2
4
lnode.go
4
lnode.go
@ -17,11 +17,11 @@ type lnode struct {
|
||||
// key returns a byte slice of the node key.
|
||||
func (n *lnode) key() []byte {
|
||||
buf := (*[maxAllocSize]byte)(unsafe.Pointer(n))
|
||||
return buf[n.pos:n.pos+n.ksize]
|
||||
return buf[n.pos : n.pos+n.ksize]
|
||||
}
|
||||
|
||||
// value returns a byte slice of the node value.
|
||||
func (n *lnode) value() []byte {
|
||||
buf := (*[maxAllocSize]byte)(unsafe.Pointer(n))
|
||||
return buf[n.pos+n.ksize:n.pos+n.ksize+n.vsize]
|
||||
return buf[n.pos+n.ksize : n.pos+n.ksize+n.vsize]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user