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: about 1 year ago
JSON representation
A Smogon Pokémon format parser written in Go
- Host: GitHub
- URL: https://github.com/sug0/showgone
- Owner: sug0
- Created: 2018-11-01T11:46:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T11:58:36.000Z (over 7 years ago)
- Last Synced: 2025-02-13T08:54:14.571Z (over 1 year ago)
- Topics: format, go, golang, golang-library, parser, pokemon, showdown, smogon
- Language: Go
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).