Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soranoba authored Sep 19, 2020
1 parent c63d507 commit 4952ac5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ import (
"github.com/soranoba/googp"
)

type Music struct {
}

type CustomOGP struct {
Title string `googp:"og:title"`
Description string `googp:"-"` // ignored
images []string // private field ignored
images []string // private field (ignored)
Videos []string `googp:"og:video,og:video:url"`
Musics Music `googp:"music"` // object type
}
Expand All @@ -60,8 +63,8 @@ func main() {
```go
type OGP struct {
Image struct {
URL `googp:"og:image,og:image:url"`
SecureURL `googp:"og:image:secure_url"`
URL string `googp:"og:image,og:image:url"`
SecureURL string `googp:"og:image:secure_url"`
} `googp:"og:image"`
}
```
Expand Down

0 comments on commit 4952ac5

Please sign in to comment.