You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am escaping stars and backticks by having them wrapped in single/double quotes in my yaml file.
I have yaml in a file like bellow:
keyword: a test keywordresponse:
- "**This line will print the first time** Fails to add when marshalling"
- "This line will be printed alone after marshalling and unmarshalling"
If you marshal it strips the outside quotes resulting in the following:
keyword: a test keywordresponse:
- **This line will print the first time** Fails to add when marshalling
- This line will be printed alone after marshalling and unmarshalling
The result after marshalling is that the first line gets lost due to being parsed as a pointer when unmarshalling again. This also affects when reading and writing from files.
The text was updated successfully, but these errors were encountered:
Example: https://play.golang.org/p/8eLm27d9NHe
I am escaping stars and backticks by having them wrapped in single/double quotes in my yaml file.
I have yaml in a file like bellow:
If you marshal it strips the outside quotes resulting in the following:
The result after marshalling is that the first line gets lost due to being parsed as a pointer when unmarshalling again. This also affects when reading and writing from files.
The text was updated successfully, but these errors were encountered: