home

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFilePaths

func GetConfigFilePaths(command string, iou IoUtil) ([]string, error)

func GetContent

func GetContent(path string, iou IoUtil) ([]byte, error)

func GetPath

func GetPath(command string, commandName string) (string, error)

Types

type IoUtil

type IoUtil interface {
	ReadDir(dirname string) ([]fs.FileInfo, error)
	ReadFile(filename string) ([]byte, error)
}

type Reader

type Reader struct{}

func (*Reader) ReadDir

func (r *Reader) ReadDir(dirname string) ([]fs.FileInfo, error)

func (*Reader) ReadFile

func (r *Reader) ReadFile(path string) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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