zstdzgo.at/zstd/zfilepath Index | Files

package zfilepath

import "zgo.at/zstd/zfilepath"

Package zfilepath implements functions for manipulating filename paths.

Index

Functions

func SplitExt

func SplitExt(path string) (string, string)

SplitExt returns the path without extension and the extension.

If there is no extension the first return value is the same as the input. The extension will *not* contain a dot.

func TrimPrefix

func TrimPrefix(path, prefix string) string

TrimPrefix trims a prefix from a path.

This ensures that any trailing slashes are also removed.

Source Files

zfilepath.go

Version
v0.0.0-20240930202209-a63c3335042a (latest)
Published
Sep 30, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
2 days ago

Tools for package owners.