converter

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadNewDifficulty

func LoadNewDifficulty(bytes []byte) (*types.NewDifficultyJSON, error)

LoadNewDifficulty Loads new difficulty struct from byte array

func LoadNewInfo

func LoadNewInfo(bytes []byte) (*types.NewInfoJSON, error)

LoadNewInfo Loads new info struct from byte array

func LoadOldDifficulty

func LoadOldDifficulty(bytes []byte) (*types.OldDifficultyJSON, error)

LoadOldDifficulty Loads old difficulty struct from byte array

func LoadOldInfo

func LoadOldInfo(bytes []byte) (*types.OldInfoJSON, error)

LoadOldInfo Loads old info struct from byte array

func NewToOld

func NewToOld(new *types.NewInfoJSON) (*types.OldInfoJSON, error)

NewToOld converts the new format back to the old format

func OldToNew

func OldToNew(old *types.OldInfoJSON) (*types.NewInfoJSON, error)

OldToNew converts the old format to the new format

func ReadDirectoryNew

func ReadDirectoryNew(path string) (*types.NewInfoJSON, error)

ReadDirectoryNew Reads a directory and loads new beatmap format

func ReadDirectoryOld

func ReadDirectoryOld(path string) (*types.OldInfoJSON, error)

ReadDirectoryOld Reads a directory and loads old beatmap format

Types

type Result

type Result struct {
	OldHash string
	NewHash string

	Directory string
	Error     error
}

Result conversion result

func DirNewToOld

func DirNewToOld(dir string, dryRun bool, keepFiles bool) Result

DirNewToOld converts a new directory into an old directory

func DirOldToNew

func DirOldToNew(dir string, dryRun bool, keepFiles bool) Result

DirOldToNew converts an old directory into a new directory

Jump to

Keyboard shortcuts

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