Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sug0/showgone

A Smogon Pokémon format parser written in Go
https://github.com/sug0/showgone

format go golang golang-library parser pokemon showdown smogon

Last synced: 24 days ago
JSON representation

A Smogon Pokémon format parser written in Go

Awesome Lists containing this project

README

        

# showgone

Tapu Lele @ Fightinium Z
Ability: Psychic Surge
EVs: 252 SpA / 4 SpD / 252 Spe
Timid Nature
- Psychic
- Moonblast
- Taunt
- Focus Blast

A parser for [Smogon](https://www.smogon.com/)'s pokémon format,
written in golang.

# Example

```go
package main

import (
"os"
"fmt"
"bufio"

"github.com/sugoiuguu/showgone"
)

func main() {
r := bufio.NewReader(os.Stdin)
for {
poke, err := showgone.Parse(r)
if err != nil {
return
}
fmt.Println(poke.Species, "lvl", poke.Level, "@", poke.Item)
}
}
```

More documentation available at [godoc](https://godoc.org/github.com/sugoiuguu/showgone).