How to avoid adding single quote #904
-
|
I'm unmarshalling a TOML file, then modifying its content and writing it back to the TOML file. During the modifications I'm only adding a new field Before After modifying with go-toml v2 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
ping @pelletier |
Beta Was this translation helpful? Give feedback.
-
|
The single quotes are here to denote that |
Beta Was this translation helpful? Give feedback.
-
|
@pelletier thanks for the prompt response. Below is the code block:
I think what you want to see is the last point writing |
Beta Was this translation helpful? Give feedback.
The issue is in the modification. The
crioNriTablekey is defined as"crio.nri". The whole string is the key. You'd need to do it in two steps. For example (checks omitted for brevity) :