mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 12:56:46 +00:00
Initial work to get full output format working
This commit is contained in:
20
entry.go
Normal file
20
entry.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
func NewEntry(inputJSON []byte) (*Entry, error) {
|
||||
obj, err := NewObject(inputJSON)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &Entry{
|
||||
Object: obj,
|
||||
Index: obj.Index(),
|
||||
}, err
|
||||
}
|
||||
|
||||
// Entry is a parsed heap item object
|
||||
type Entry struct {
|
||||
Object *Object
|
||||
Offset int64
|
||||
Index string
|
||||
}
|
||||
Reference in New Issue
Block a user