internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartInfoVo

type ChartInfoVo struct {
	Title    string
	SubTitle string
	Artist   string
	Sha256   string `json:"sha256"`
	Md5      string `json:"md5"`
}

type ImportCourseVo

type ImportCourseVo struct {
	Name       string        `json:"name"`
	Md5        []string      `json:"md5"`
	Sha256     []string      `json:"sha256"`
	Constraint []string      `json:"constraint"`
	Charts     []ChartInfoVo `json:"charts"`
	HeaderID   uint
}

type ImportHeaderVo

type ImportHeaderVo struct {
	DataURL     string `json:"data_url"`
	Name        string `json:"name"`
	OriginalURL string `json:"original_url"`
	Symbol      string `json:"symbol"`
	HeaderURL   string
	LevelOrders []any `json:"level_order"`
	RawCourses  []any `json:"course"`
	Courses     []ImportCourseVo
}

func (*ImportHeaderVo) ParseRawCourses

func (header *ImportHeaderVo) ParseRawCourses() error

Parse field 'RawCourses' into 'Courses'

Possible layouts:

  1. courses is an array of valid courses
  2. courses is a two-dimensional array, every element might be an array of valid courses
  3. courses is an array of a wrapped struct, the real courses are laid inside 'charts' field

For Item3, see pushupChartsHashField for details

Jump to

Keyboard shortcuts

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