Skip to content
/ showgone Public

A Smogon Pokémon format parser written in Go

Notifications You must be signed in to change notification settings

sug0/showgone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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's pokémon format, written in golang.

Example

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.

Releases

No releases published

Packages

No packages published

Languages