Categorygithub.com/mertdogan12/osu-replay-parser
repositorypackage
1.0.2
Repository: https://github.com/mertdogan12/osu-replay-parser.git
Documentation: pkg.go.dev

# README

osu-replay-parser

Parses .osr files

Use it

go get github.com/mertdogan12/osu-replay-parser@master

Code example

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")
}