converter

package
v0.0.0-...-395a013 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CsvHeading = "Song|Location|Author|Copyright\n"

Variables

This section is empty.

Functions

func BuildCsv

func BuildCsv(mdInfo []MdFileInfo) (string, error)

func BuildHtmlCover

func BuildHtmlCover(coverMd string) string

func BuildHtmlSongs

func BuildHtmlSongs(mdInfo []MdFileInfo) (string, []string, error)

func ConvertMdToCsv

func ConvertMdToCsv(fileName, filePath, fileContents string) (string, error)

func ConvertMdToHtmlSong

func ConvertMdToHtmlSong(filePath, fileContents string) (string, error)

Types

type MdFileInfo

type MdFileInfo struct {
	FilePath     string
	FileName     string
	FileContents string
}

type SongMetadata

type SongMetadata struct {
	Melody         string `yaml:"melody"`
	SongKey        string `yaml:"key"`
	Authors        string `yaml:"authors"`
	InChurch       string `yaml:"in-church"`
	VerseReference string `yaml:"verse"`
	BookLocation   string `yaml:"location"`
	Copyright      string `yaml:"copyright"`
}

Jump to

Keyboard shortcuts

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