dirhandle

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() (string, error)

Current returns the current path

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), notExists func(string, error))

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

func GetDir

func GetDir(number int) string

GetDir returns the path by index

func PrintDir

func PrintDir(number int)

PrintDir prints the all the paths

Types

This section is empty.

Jump to

Keyboard shortcuts

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