Skip to content

Commit

Permalink
Fix union documentation (hamba#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored May 31, 2020
1 parent b35e9e6 commit 52fb4ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ More examples in the [godoc](https://godoc.org/github.com/hamba/avro).

##### Unions

In Go structs, the following types are accepted: `map[string]interface{}`, `*T`,
and a `struct` implementing `avro.UnionType`. When en/decoding to an `interface{}`, a
`map[string]interface{}` will always be used.
The following union types are accepted: `map[string]interface{}`, `*T` and `interface{}`.

* **map[string]interface{}:** If the union value is `nil`, a `nil` map will be en/decoded.
When a non-`nil` union value is encountered, a single key is en/decoded. The key is the avro
Expand Down

0 comments on commit 52fb4ee

Please sign in to comment.