path

package
v0.0.0-...-af000dd Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package path deals with local file paths

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(path string) string

func CollapseUserDir

func CollapseUserDir(path string) string

func FindDir

func FindDir(base, dir string) ([]string, error)

func GetDirs

func GetDirs(path string) ([]string, error)

Types

type Organiser

type Organiser interface {
	// Organise finds the path to in which to organise the current repo
	Organise(repo *domain.Repo) string
}

type SimpleOrganiser

type SimpleOrganiser struct {
	Root string
}

func (*SimpleOrganiser) Organise

func (o *SimpleOrganiser) Organise(repo *domain.Repo) string

Jump to

Keyboard shortcuts

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