dirhandle

package module
v0.0.0-...-1f56313 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() (string, error)

func Exists

func Exists(path string) (bool, error)

Exists checks if a path exists

func FileTypeHandler

func FileTypeHandler(path string, jsonHandle func(string), yamlHandle func(string), anyElse func(string, ext string), notExists func(string, error))

FileTypeHandler calls function depending on file ending and if this fil exists

Types

type Popd

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

func Pushd

func Pushd() *Popd

Pushd returns a new popd struct with the current directory

func (*Popd) Popd

func (p *Popd) Popd() error

Popd changes the directory back to the directory that was saved in the struct

Jump to

Keyboard shortcuts

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