package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func SetTypenameRecursively[T any](x T) T
type AudioClip struct {
Duration int `json:"duration"`
Typename string `json:"__typename"`
}
type Author struct {
Name string `json:"name"`
}
type Book interface {
IsBook()
GetTitle() string
GetAuthor() *Author
}
type Library struct {
Books []Book `json:"books"`
}
type MediaItem interface {
IsMediaItem()
}
type TextBook struct {
Title string `json:"title"`
Author *Author `json:"author"`
SupplementaryMaterial []MediaItem `json:"supplementaryMaterial"`
Typename string `json:"__typename"`
}
type VideoClip struct {
PreviewURL string `json:"previewURL"`
Typename string `json:"__typename"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.