mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
15
vendor/github.com/zclconf/go-cty/cty/set/iterator.go
generated
vendored
Normal file
15
vendor/github.com/zclconf/go-cty/cty/set/iterator.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
package set
|
||||
|
||||
type Iterator struct {
|
||||
vals []interface{}
|
||||
idx int
|
||||
}
|
||||
|
||||
func (it *Iterator) Value() interface{} {
|
||||
return it.vals[it.idx]
|
||||
}
|
||||
|
||||
func (it *Iterator) Next() bool {
|
||||
it.idx++
|
||||
return it.idx < len(it.vals)
|
||||
}
|
Reference in New Issue
Block a user