Help us shape the future of Go! Take the 2026 Go Developer Survey

pathutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pathutil provides path joining that is safe for both local filesystem paths and URI-scheme paths (gs://, s3://, etc.).

The standard path.Join collapses double slashes, turning "gs://bucket/foo" into "gs:/bucket/foo" which breaks GCS and S3 clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(p string) string

Base returns the last element of a path, handling URI schemes.

func Join

func Join(base string, elems ...string) string

Join joins path elements onto base, preserving any URI scheme double-slash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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