pathlist.v0: gopkg.in/pathlist.v0/internal Index | Files

package internal

import "gopkg.in/pathlist.v0/internal"

Package internal implements internal logic for the pathlist package.

Parameter names refer to "type":

fp: filepath (single, raw/unquoted)
l:  list (0 or more elems, potentially quoted)
e:  elem (single, potentially quoted)
el: e or l

TODO(speter): sane behavior on elems containing unclosed quotes

Index

Package Files

pathlist.go pathlist_unix.go

Constants

const (
    ErrSep   = "filepath must not contain ListSeparator" // Unix only
    ErrQuote = "filepath must not be quoted"             // Windows only
)
const ListSeparator = os.PathListSeparator

func Append Uses

func Append(l, e string) string

func CloseQuote Uses

func CloseQuote(el string) string

func Filepaths Uses

func Filepaths(l string) []string

func NewElem Uses

func NewElem(fp string) (string, error)

func NewList Uses

func NewList(e ...string) string

func Prepend Uses

func Prepend(l, e string) string

type Error Uses

type Error struct {
    Cause_    string
    Filepath_ string
}

func (Error) Cause Uses

func (e Error) Cause() string

func (Error) Error Uses

func (e Error) Error() string

Error implements the pathlist.Error interface.

func (Error) Filepath Uses

func (e Error) Filepath() string

Package internal imports 4 packages (graph) and is imported by 1 packages. Updated 2018-06-02. Refresh now. Tools for package owners.