feat(data): parse json and render simple thing
This commit is contained in:
parent
a50d678a67
commit
d25e04d8c7
7 changed files with 62 additions and 17 deletions
13
data.go
Normal file
13
data.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
type Data struct {
|
||||
Image string `json:"image"`
|
||||
Description string `json:"description"`
|
||||
Person *Person `json:"person"`
|
||||
}
|
||||
|
||||
type Person struct {
|
||||
Name string `json:"name"`
|
||||
Pronouns string `json:"pronouns"`
|
||||
Image string `json:"image"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue