xfilepath

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Overview

Package xfilepath contains some functions complementing filepath.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceExt

func ReplaceExt(p string, ext string) string

ReplaceExt returns the path with its file name extension replaced by the provided one. The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.

func TrimExt

func TrimExt(p string) string

TrimExt returns the path without its file name extension. The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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