// -*- Mode: Go -*- package nslcd_proto type _Enumerator interface { GetNext() (n *, err error) GenericGetNext() (n interface{}, err error) } type _List struct { dat [] i int } func New__List(ary []) *_List { return &_List{ary, 0} } func (o *_List) GetNext() (n *, err error) { if o.i < len(o.dat) { n = &o.dat[o.i] o.i++ } err = nil return } func (o *_List) GenericGetNext() (n interface{}, err error) { return o.GetNext() } type _Ø struct{} func (o *_Ø) GetNext() (*, error) { return nil, nil } func (o *_Ø) GenericGetNext() (interface{}, error) { return nil, nil }