Skip to content

mertdogan12/osu-replay-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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