hydra

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(parent, relative string) string

Combine creates a path from the parent combined with the relative path. The relative path is a file system path so should only contain forward slashes, not the standard file path separator as denoted by filepath.Separator, typically used when interacting with the local file system. Do not use trailing "/".

func CustomTree

func CustomTree(index, element string, verbose bool,
	portions ...string,
) (fS *luna.MemFS, err error)

CustomTree is a luna.MemFS factory, equivalent to Nuxx that is populated by an alternative xml file. index is the full path the xml index file and tree is the name of the root element in the file (for Nuxx, this would be "MUSICO"). The tree can be filtered by specifying 'portions'.

func Nuxx

func Nuxx(verbose bool, portions ...string) (fS *luna.MemFS)

Nuxx is a luna.MemFS factory hardcoded to Musico

func Repo

func Repo(relative string) string

Repo gets the path of the repo with relative joined on

Types

type Directory

type Directory struct {
	XMLName     xml.Name    `xml:"directory"`
	Name        string      `xml:"name,attr"`
	Files       []File      `xml:"file"`
	Directories []Directory `xml:"directory"`
}

type File

type File struct {
	XMLName xml.Name `xml:"file"`
	Name    string   `xml:"name,attr"`
	Text    string   `xml:",chardata"`
}

type IOProvider

type IOProvider struct {
	// contains filtered or unexported fields
}

type Tree

type Tree struct {
	XMLName xml.Name  `xml:"tree"`
	Root    Directory `xml:"directory"`
}

Jump to

Keyboard shortcuts

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