args: add simple value accessor

This commit is contained in:
Michael Muré
2024-11-27 12:23:10 +01:00
parent 20369dba49
commit ba4db9bce8
3 changed files with 17 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ type ReadOnly struct {
args *Args
}
func (r ReadOnly) GetNode(key string) (ipld.Node, error) {
return r.args.GetNode(key)
}
func (r ReadOnly) Iter() iter.Seq2[string, ipld.Node] {
return r.args.Iter()
}