Example #1
0
func init() {
	rw := &htmlWriter{}
	f := &format.Format{
		Name:       "html",
		Writer:     rw,
		Extensions: []string{".html", ".htm"},
	}

	format.Register(f)
}
Example #2
0
func init() {
	rw := &cpReaderWriter{}
	f := &format.Format{
		Name:       "chordpro",
		Reader:     rw,
		Writer:     rw,
		Extensions: []string{".cho", ".chordpro", ".chopro"},
	}

	format.Register(f)
}
Example #3
0
func init() {
	rw := &plainReaderWriter{}
	f := &format.Format{
		Name:       "chordsOverLyrics",
		Reader:     rw,
		Writer:     rw,
		Extensions: []string{".txt"},
	}

	format.Register(f)
}