Ver Fonte

Document "-" key.

Gustavo Niemeyer há 13 anos atrás
pai
commit
b3031338ac
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      goyaml.go

+ 2 - 0
goyaml.go

@@ -119,6 +119,8 @@ func Unmarshal(in []byte, out interface{}) (err error) {
 //     flow         Marshal using a flow style (useful for structs,
 //     flow         Marshal using a flow style (useful for structs,
 //                  sequences and maps.
 //                  sequences and maps.
 //
 //
+// In addition, if the key is "-", the field is ignored.
+//
 // For example:
 // For example:
 //
 //
 //     type T struct {
 //     type T struct {