test

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTypenameRecursively

func SetTypenameRecursively[T any](x T) T

Types

type AudioClip

type AudioClip struct {
	Duration int    `json:"duration"`
	Typename string `json:"__typename"`
}

func (AudioClip) IsMediaItem

func (AudioClip) IsMediaItem()

type Author

type Author struct {
	Name string `json:"name"`
}

type Book

type Book interface {
	IsBook()
	GetTitle() string
	GetAuthor() *Author
}

type Library

type Library struct {
	Books []Book `json:"books"`
}

type MediaItem

type MediaItem interface {
	IsMediaItem()
}

type TextBook

type TextBook struct {
	Title                 string      `json:"title"`
	Author                *Author     `json:"author"`
	SupplementaryMaterial []MediaItem `json:"supplementaryMaterial"`
	Typename              string      `json:"__typename"`
}

func (TextBook) GetAuthor

func (this TextBook) GetAuthor() *Author

func (TextBook) GetTitle

func (this TextBook) GetTitle() string

func (TextBook) IsBook

func (TextBook) IsBook()

type VideoClip

type VideoClip struct {
	PreviewURL string `json:"previewURL"`
	Typename   string `json:"__typename"`
}

func (VideoClip) IsMediaItem

func (VideoClip) IsMediaItem()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL