https://github.com/mertdogan12/osu-replay-parser
Parses .osr files
https://github.com/mertdogan12/osu-replay-parser
go golang osu parse parser replay
Last synced: 5 months ago
JSON representation
Parses .osr files
- Host: GitHub
- URL: https://github.com/mertdogan12/osu-replay-parser
- Owner: mertdogan12
- License: apache-2.0
- Created: 2021-10-13T19:29:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T15:43:42.000Z (about 4 years ago)
- Last Synced: 2023-07-27T22:21:36.499Z (almost 3 years ago)
- Topics: go, golang, osu, parse, parser, replay
- Language: Go
- Homepage:
- Size: 326 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# osu-replay-parser
Parses [.osr](https://osu.ppy.sh/wiki/en/Client/File_formats/Osr_%28file_format%29) files
## Use it
```bash
go get github.com/mertdogan12/osu-replay-parser@master
```
## Code example
```bash
package main
import (
"os"
parser "github.com/mertdogan12/osu-replay-parser"
)
func main() {
// Read data from replay file
data, err := os.ReadFile("path to file")
if err != nil {
panic(err)
}
// Parse the data
parser.Parse(data)
// Parse the data direct from a file
parser.ParseFile("path to file")
}
```