Merge pull request #54 from 21stio/patch-3

Update README.md
このコミットが含まれているのは:
Cory J Slep 2018-07-01 13:15:05 +02:00 committed by GitHub
コミット c6b55cc0f2
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -30,7 +30,7 @@ a statically-typed API.
For example, consider an application that receives the simple ActivityStream
Vocabulary object in the following JSON:
```
```golang
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Note",
@ -58,7 +58,7 @@ conditions. Consider:
Therefore, trying to statically determine this with typical JSON tagging does
not work:
```
```golang
type NaiveActivity struct {
type string `json:"Type"` // Not OK, cannot handle array of strings
name []string `json:"Name"` // Not OK, cannot handle single values
@ -71,7 +71,7 @@ This is the motivation for this library.
All of these considerations are presented as:
```
```golang
type Note struct { ... }
func (n *Note) NameLen() int { ... }
func (n *Note) IsNameString(index int) bool { ... }