Skip to content

Commit

Permalink
Document that the textual form isn't preserved.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemeyer committed Jun 15, 2020
1 parent c8ae110 commit eeeca48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ const (
// and maps, Node is an intermediate representation that allows detailed
// control over the content being decoded or encoded.
//
// It's worth noting that although Node offers access into details such as
// line numbers, colums, and comments, the content when re-encoded will not
// have its original textual representation preserved. An effort is made to
// render the data plesantly, and to preserve comments near the data they
// describe, though.
//
// Values that make use of the Node type interact with the yaml package in the
// same way any other type would do, by encoding and decoding yaml data
// directly or indirectly into them.
Expand Down

0 comments on commit eeeca48

Please sign in to comment.