Skip to content

Repository files navigation

libpath.Go

Path parsing library, for Go

LanguageLicenseGitHub releaseLast CommitGoGo Reference

Table of Contents

Introduction

libpath is a multi-platform path parsing library. The first libpath library was a C library with a C++ wrapper. There have been several implementations in other languages. libpath.Go is the Go version.

Installation

Install via go get, as in:

go get "github.com/synesissoftware/libpath.Go"

and then import as:

import libpath "github.com/synesissoftware/libpath.Go"

or, simply, as:

import"github.com/synesissoftware/libpath.Go"

Components

The library is organised into platform-specific parsing packages and shared types:

  • parse/unixClassifyRoot(), ParsePathStringFlags() for Unix path strings;
  • parse/windowsClassifyRoot(), ParsePathStringFlags() for Windows path strings;
  • parse/common — shared PathDescriptor, ParseFlags, and related types.

See EXAMPLES.md and examples/parse_path.md for parsing under ambient, Unix, and Windows interpretation.

Examples

Examples are provided in the examples directory, along with a markdown description for each. A detailed list TOC of them is provided in EXAMPLES.md.

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/libpath.Go.

Dependencies

Development/Testing Dependencies

Related projects

Other libpath libraries include:

Projects in which libpath.Go is used include:

libpath.Go is used in the recls.Go library.

License

libpath.Go is released under the 3-clause BSD license. See LICENSE for details.

About

Path parsing library, for Go

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages