Skip to content

Text string '0x' is marshaled without quotes. #599

Open
@mcdee

Description

Describe the bug

Attempting to marshal the text string '0x' returns without quotes.

To Reproduce

https://go.dev/play/p/Zu1JcjgLguZ

Expected behavior

The text string should be marshalled with quotes, as it is a string.

Version Variables

  • Go version: 1.21
  • go-yaml's Version: e.g. v1.15.11

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions