Skip to content

Can we get node key name from itself? #2

@takaaptech

Description

@takaaptech

Hi @dezhidki ,
Thank so much for this TOML parser library! It is awesome!
For now, each time working with TomlNode, I need to get its key name.
For example:

title="TOML file"
[dataconfig]
     name="abc"

I can get TomlTable by:

var table_node = config["dataconfig"]
### Now how can i get "dataconfig" key name from table_node?
### We can get it from parent of couse but i think it is better to have that key name inside node itself.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions