go-ini/ini

Question - Create nested INI file

abolinhas opened this issue · 0 comments

Version

1.67.0

Describe the bug

Hi
It's possible create this kind of nasted INI with this library?

[realms]
    ATHENA.MIT.EDU = {
        auth_to_local = RULE:[2:$1](johndoe)s/^.*$/guest/
        auth_to_local = RULE:[2:$1;$2](^.*;admin$)s/;admin$//
        auth_to_local = RULE:[2:$2](^.*;root)s/^.*$/root/
        auto_to_local = DEFAULT
    }

To reproduce

I have read the documentation but don't find anything related.

Expected behavior

Create this kind of INI file

[realms]
    ATHENA.MIT.EDU = {
        auth_to_local = RULE:[2:$1](johndoe)s/^.*$/guest/
        auth_to_local = RULE:[2:$1;$2](^.*;admin$)s/;admin$//
        auth_to_local = RULE:[2:$2](^.*;root)s/^.*$/root/
        auto_to_local = DEFAULT
    }

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct