pathexpander

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Describes pathexpander that expands paths in given templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l Logger, searchGitFromDirectory string) *pathexpander

New creates new pathexpander. searchGitFromDirectory is used to search project git root.

Types

type Logger

type Logger interface {
	Log(message string)
	Warn(message string)
}

type PathExpander

type PathExpander interface {
	Expand(template string) (string, error)
}

Jump to

Keyboard shortcuts

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