Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sug0/showgone
- Owner: sug0
- Created: 2018-11-01T11:46:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T11:58:36.000Z (about 6 years ago)
- Last Synced: 2024-11-02T09:04:43.560Z (2 months 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 BlastA parser for [Smogon](https://www.smogon.com/)'s pokémon format,
written in golang.# Example
```go
package mainimport (
"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).