Skip to content

Commit

Permalink
bump(gopkg.in/v1/yaml): b0c168ac0cf9493da1f9bb76c34b26ffef940b4a
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Jun 17, 2014
1 parent f7f449f commit dd44261
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions third_party/src/gopkg.in/v1/yaml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,27 @@ type T struct {

func main() {
t := T{}

err := yaml.Unmarshal([]byte(data), &t)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- t:\n%v\n\n", t)

d, err := yaml.Marshal(&t)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- t dump:\n%s\n\n", string(d))

m := make(map[interface{}]interface{})

err = yaml.Unmarshal([]byte(data), &m)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- m:\n%v\n\n", m)

d, err = yaml.Marshal(&m)
if err != nil {
log.Fatalf("error: %v", err)
Expand Down Expand Up @@ -125,3 +125,4 @@ b:
- 3
- 4
```

2 changes: 1 addition & 1 deletion third_party/src/gopkg.in/v1/yaml/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ longTag:
label: center/big
inlineMap:
# Inlined map
# Inlined map
<< : {"x": 1, "y": 2, "r": 10}
label: center/big
Expand Down

0 comments on commit dd44261

Please sign in to comment.