neoneo-go/pkg/interop/iterator/iterator.go
Roman Khimov a9b9c9226d *: add/fix godoc comments to satisfy golint
Fixes things like:
 * exported type/method/function X should have comment or be unexported
 * comment on exported type/method/function X should be of the form "X ..."
   (with optional leading article)

Refs. #213.
2019-09-03 17:57:51 +03:00

28 lines
646 B
Go

package iterator
// Package iterator provides function signatures that can be used inside
// smart contracts that are written in the neo-go 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{}
}
// Key returns the iterator key.
// TODO: Better description for this.
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
}