feat: replace text/template with templ and refactor code
This commit is contained in:
15
data/annotation.go
Normal file
15
data/annotation.go
Normal file
@ -0,0 +1,15 @@
|
||||
package data
|
||||
|
||||
type AnnotationsResponse struct {
|
||||
Response struct {
|
||||
Referent struct {
|
||||
Annotations []Annotation `json:"annotations"`
|
||||
} `json:"referent"`
|
||||
} `json:"response"`
|
||||
}
|
||||
|
||||
type Annotation struct {
|
||||
Body struct {
|
||||
Html string `json:"html"`
|
||||
} `json:"body"`
|
||||
}
|
Reference in New Issue
Block a user