path

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

This package provides an interface to functions and structs in the standard path package to facilitate mocking.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadPattern = path.ErrBadPattern
)

Functions

func NewPath

func NewPath() pathFacade

Types

type Path

type Path interface {
	Base(string) string
	Clean(string) string
	Dir(string) string
	Ext(string) string
	IsAbs(string) bool
	Join(...string) string
	Match(string, string) (bool, error)
	Split(string) (string, string)
}

Directories

Path Synopsis
This package provides an interface to functions and structs in the standard path/filepath package to facilitate mocking.
This package provides an interface to functions and structs in the standard path/filepath package to facilitate mocking.

Jump to

Keyboard shortcuts

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