path

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package path provides a mockable wrapper for path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Base

func (*Impl) Base(path_v string) string

func (*Impl) Clean

func (*Impl) Clean(path_v string) string

func (*Impl) Dir

func (*Impl) Dir(path_v string) string

func (*Impl) Ext

func (*Impl) Ext(path_v string) string

func (*Impl) IsAbs

func (*Impl) IsAbs(path_v string) bool

func (*Impl) Join

func (*Impl) Join(elem ...string) string

func (*Impl) Match

func (*Impl) Match(pattern string, name string) (matched bool, err error)

func (*Impl) Split

func (*Impl) Split(path_v string) (dir string, file string)

type Interface

type Interface interface {
	Base(path string) string
	Clean(path string) string
	Dir(path string) string
	Ext(path string) string
	IsAbs(path string) bool
	Join(elem ...string) string
	Match(pattern string, name string) (matched bool, err error)
	Split(path string) (dir string, file string)
}

Directories

Path Synopsis
Package filepath provides a mockable wrapper for path/filepath.
Package filepath provides a mockable wrapper for path/filepath.

Jump to

Keyboard shortcuts

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