Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not parsed after newline in block string #33

Closed
nasa9084 opened this issue Nov 8, 2019 · 0 comments · Fixed by #35
Closed

not parsed after newline in block string #33

nasa9084 opened this issue Nov 8, 2019 · 0 comments · Fixed by #35

Comments

@nasa9084
Copy link
Contributor

nasa9084 commented Nov 8, 2019

複数行文字列を単体でパースしようと思うと、二行目以降が切り捨てられてしまうようです。

https://play.golang.org/p/iHIxeMMDhT5

親構造体で UnmarshalYAMLを定義していて、文字列のフィールドを個別にUnmarshal()する必要がある場合に問題がおきました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant