bmstable

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 8 Imported by: 0

README

bmstable

Go library for parsing bms difficult table

Use

go get github.com/Catizard/bmstable

to import

See test file for basic usage.

Side Note

This library is extracted from lampghost, which is a beatoraja save file GUI viewer. Have it a look!

Documentation

Overview

Package bmstable implmenets bms difficult table parsing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CourseInfo

type CourseInfo struct {
	Name       string   `json:"name"`
	Md5        []string `json:"md5"`
	Sha256     []string `json:"sha256"`
	Constraint []string `json:"constraint"`
}

Stores the meta data of a course

type DifficultTable

type DifficultTable struct {
	HeaderURL   string `json:"header_url"`
	DataURL     string `json:"data_url"`
	Name        string `json:"name"`
	OriginalURL string `json:"original_url"`
	Symbol      string `json:"symbol"`
	LevelOrder  []string
	Contents    []DifficultTableData
	Courses     []CourseInfo
}

Stores the meta data of a difficult table

func ParseFromURL

func ParseFromURL(url string) (DifficultTable, error)

type DifficultTableData

type DifficultTableData struct {
	Artist   string `json:"artist"`
	Comment  string `json:"comment"`
	Level    string `json:"level"`
	Lr2BmsID string `json:"lr2_bmdid"`
	Md5      string `json:"md5"`
	NameDiff string `json:"name_diff"`
	Title    string `json:"title"`
	URL      string `json:"url"`
	URLDiff  string `json:"url_diff"`
	Sha256   string `json:"sha256"`
}

Reprents one song arranged in a difficult table

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL