A Golang parser for .slp slippi files.
- Go 100%
|
dependabot[bot]
02d818dda2
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.25.0 to 0.26.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-version: 0.26.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | Adds dependabot.yml for version updates. | |
| internal | Various cleanup bits. | |
| slippi | Various cleanup bits. | |
| test | Various cleanup bits. | |
| .gitignore | Raw parsing ( #1 ) | |
| errors.go | Raw parsing ( #1 ) | |
| go.mod | Bump golang.org/x/text from 0.25.0 to 0.26.0 ( #20 ) | |
| go.sum | Bump golang.org/x/text from 0.25.0 to 0.26.0 ( #20 ) | |
| parse.go | Various cleanup bits. | |
| parse_meta_only.go | Renames module. | |
| parse_meta_only_test.go | Various cleanup bits. | |
| parse_test.go | Various cleanup bits. | |
| README.md | Updates README | |
go-slippi
go-slippi is a Golang (1.21) parser for .slp slippi files. It (currently only) supports parsing .slp files into Go
types.
Usage
Full game
packagemainimport("fmt"goslippi"github.com/pmcca/go-slippi""log")funcmain(){filePath:="path/to/my-replay.slp"game,err:=goslippi.ParseGame(filePath)iferr!=nil{log.Fatal(err)}fmt.Println(game.Data.GameStart.SlippiVersion)}Metadata Only
packagemainimport("fmt"goslippi"github.com/pmcca/go-slippi""log")funcmain(){filePath:="path/to/my-replay.slp"meta,err:=goslippi.ParseMeta(filePath)iferr!=nil{log.Fatal(err)}fmt.Println(meta.Players)}