neoneo-go/interop/iterator/iterator.go

29 lines
649 B
Go
Raw Normal View History

package iterator
// Package iterator provides function signatures that can be used inside
// smart contracts that are written in the neo-storm framework.
// Iterator stubs a NEO iterator object type.
type Iterator struct{}
// Create creates an iterator from the given items.
func Create(items []interface{}) Iterator {
return Iterator{}
}
// TODO: Better description for this.
// Key returns the iterator key.
func Key(it Iterator) interface{} {
return nil
}
// Keys returns the iterator keys.
func Keys(it Iterator) []interface{} {
return nil
}
// Values returns the iterator values.
func Values(it Iterator) []interface{} {
return nil
}