charachorder

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package charachorder handles reading/writing CharaChorder CSV files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chord

type Chord struct {
	Keys   []string
	Output string
}

Chord represents a single chord within a CharaChorder csv file.

func ParseChord

func ParseChord(value string) Chord

ParseChord will convert a CharaChorder CSV line into a Chord.

func (*Chord) CSV

func (c *Chord) CSV() string

CSV returns a string representing the chord in the CharaChorder CSV format.

func (*Chord) Clone

func (c *Chord) Clone() Chord

Clone duplicates the Chord.

type File

type File struct {
	Filename string
	Chords   []Chord
}

File represents a CSV CharaChorder file.

func Parse

func Parse(reader io.Reader) File

Parse will read the stream into a File structure.

func ParseFromFilename

func ParseFromFilename(filename string) File

ParseFromFilename filename into a File structure.

Directories

Path Synopsis
Package translate converts charachorder.File's from one keyboard layout to another.
Package translate converts charachorder.File's from one keyboard layout to another.

Jump to

Keyboard shortcuts

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