dirs

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir[T any] struct {
	// contains filtered or unexported fields
}

func Build

func Build[T any](basePath string, root *Dir[T]) *Dir[T]

func ToDir

func ToDir[T any](name string, children T) *Dir[T]

func ToDirEmpty

func ToDirEmpty(name string) *Dir[empty]

func ToRoot

func ToRoot[T any](children T) *Dir[T]

func (*Dir[T]) FullPath

func (d *Dir[T]) FullPath() string

func (*Dir[T]) LastSegment

func (d *Dir[T]) LastSegment() string

func (*Dir[T]) S

func (d *Dir[T]) S() T

type DirEmpty

type DirEmpty = Dir[empty]

type File

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

func ToFile

func ToFile(name string) *File

func (*File) FullPath

func (f *File) FullPath() string

func (*File) LastSegment

func (f *File) LastSegment() string

Jump to

Keyboard shortcuts

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