Skip to content

Add comment to Ini structure #40

Description

@FreeCX

This code (example syntax)

let ini = Ini::new()
  .add_comment("This is comment before section")
  .section("params")
  .add_comment("This is comment before item")
  .item("foo", 3.14)
  .item_with_comment("bar", 2.71, "inline comment");

generate (after serialization)

; This is comment before section
[params]
; This is comment before item
foo = 3.14
bar = 2.71 ; inline comment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions