Explorar o código

Add simple example of field renaming.

Fixes #122.
Gustavo Niemeyer %!s(int64=10) %!d(string=hai) anos
pai
achega
2bf60357b8
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      README.md

+ 4 - 1
README.md

@@ -67,7 +67,10 @@ b:
 
 type T struct {
         A string
-        B struct{C int; D []int ",flow"}
+        B struct {
+                RenamedC int   `yaml:"c"`
+                D        []int `yaml:",flow"`
+        }
 }
 
 func main() {