cards

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardType

func CardType() *graphql.Object

CardType returns our card graphql object

func Resolve

func Resolve(p graphql.ResolveParams) (interface{}, error)

Resolve handles filtering cards by suit and value

func Setup

func Setup() (graphql.Schema, error)

Setup prepares and returns our card schema

Types

type Card

type Card struct {
	Value string
	Suit  string
}

Card represents a standard playing card

Jump to

Keyboard shortcuts

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