pathhelpercore

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseErrorWrapper added in v0.1.2

type BaseErrorWrapper struct {
	ErrorWrapper *errorwrapper.Wrapper `json:"ErrorWrapper,omitempty"`
}

type CompiledPath added in v0.1.2

type CompiledPath struct {
	SourcePath
	Compiled   string `json:"Compiled"`
	IsResolved bool   `json:"IsResolved"`
}

type CompiledPathWithErrorWrapper added in v0.1.2

type CompiledPathWithErrorWrapper struct {
	*CompiledPath
	*BaseErrorWrapper
}

type CompiledPaths added in v0.1.2

type CompiledPaths struct {
	*SourcePaths
	Compiled   *corestr.Collection `json:"Compiled,omitempty"`
	IsResolved bool                `json:"IsResolved"`
	HasIssues  bool                `json:"HasIssues"`
}

type CompiledPathsWithErrorWrapper added in v0.1.2

type CompiledPathsWithErrorWrapper struct {
	*CompiledPaths
	*BaseErrorWrapper
}

type PathConfig

type PathConfig struct {
	Separator                    string
	IsNormalize                  bool
	IsIgnoreEmptyPath            bool
	IsLongPathFix                bool
	IsExpandEnvironmentVariables bool
}

PathConfig By default: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false IsExpandEnvironmentVariables = true

func NewDefaultPathConfigOrExisting

func NewDefaultPathConfigOrExisting(existingConfig *PathConfig) *PathConfig

By default: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false IsLongPathFix = true IsExpandEnvironmentVariables: true

type SourceDestination added in v0.1.2

type SourceDestination struct {
	Source        *CompiledPath `json:"Source"`
	Destination   *CompiledPath `json:"Destination"`
	IsForce       bool
	IsSkipOnExist bool
	IsOverwrite   bool
}

type SourcePath added in v0.1.2

type SourcePath struct {
	Source      string `json:"Source"`
	IsNormalize bool   `json:"IsNormalize"`
}

type SourcePaths added in v0.1.2

type SourcePaths struct {
	RootDir     string              `json:"RootDir"`
	IsNormalize bool                `json:"IsNormalize"`
	Sources     *corestr.Collection `json:"Sources,omitempty"`
}

Jump to

Keyboard shortcuts

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