Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Download(string, string) error GetImageURL(*dataobjects.CardDetail) (string, error) GetSetDetails() ([]dataobjects.SetDetail, error) }
Interface for my scryfall package
type Payload ¶
type Payload struct { Data []struct { Set string `json:"set"` ImagesUris struct { Png string `json:"png"` } `json:"image_uris"` CardFaces []struct { ImagesUris struct { Png string `json:"png"` } `json:"image_uris"` } `json:"card_faces"` } `json:"data"` }
Payload json structure Potentially will move over to https://github.com/BlueMonday/go-scryfall // though we'll keep what I have for now
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
Struct of a scryfall
func CreateWithInterface ¶
CreateWithInterface scryfall
func (*Struct) GetImageURL ¶
func (sf *Struct) GetImageURL(cd *dataobjects.CardDetail) (imageURL string, err error)
GetImageURL from scryfall using a specific card detail
func (*Struct) GetSetDetails ¶
func (sf *Struct) GetSetDetails() (setDetails []dataobjects.SetDetail, err error)
GetSetDetails from scryfall (details being the full spelling of a set name and set abbreviation)
Click to show internal directories.
Click to hide internal directories.