-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Doarakko/v6
Version up for YGOPRODeck v6
- Loading branch information
Showing
15 changed files
with
174 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/Doarakko/go-yugioh/yugioh" | ||
) | ||
|
||
func main() { | ||
client := yugioh.NewClient() | ||
|
||
archetypes, _, err := client.Archetypes.List() | ||
if err != nil { | ||
fmt.Println(err) | ||
return | ||
} | ||
|
||
fmt.Printf("Get %v archetypes, below are the first five.\n", len(archetypes)) | ||
for _, archetype := range archetypes[:5] { | ||
fmt.Printf("%v\n", archetype.Name) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/Doarakko/go-yugioh/yugioh" | ||
) | ||
|
||
func main() { | ||
client := yugioh.NewClient() | ||
|
||
cardSets, _, err := client.CardSets.List() | ||
if err != nil { | ||
fmt.Println(err) | ||
return | ||
} | ||
|
||
fmt.Printf("Get %v card sets, below are the first five.\n", len(cardSets)) | ||
for _, set := range cardSets[:5] { | ||
fmt.Printf("%v was released on %v\n", set.Name, set.ReleaseDate) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/Doarakko/go-yugioh/yugioh" | ||
) | ||
|
||
func main() { | ||
client := yugioh.NewClient() | ||
cards, _, err := client.Cards.List( | ||
&yugioh.CardsListOptions{ | ||
Q: "dragon", | ||
Type: "Fusion Monster", | ||
Attribute: "light", | ||
Atk: "gt3000", | ||
Misc: "yes", | ||
}, | ||
) | ||
if err != nil { | ||
fmt.Println(err) | ||
return | ||
} | ||
|
||
for _, card := range cards[:5] { | ||
fmt.Printf("\"%s\" has been viewed %d times.\n", card.Name, card.Misc[0].Views) | ||
fmt.Printf("Type: %v\nRace: %v\nAtk: %v\n%v\n\n", | ||
card.Type, card.Race, card.Atk, card.Description) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/Doarakko/go-yugioh | ||
|
||
go 1.13 | ||
|
||
require github.com/google/go-querystring v1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= | ||
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.