xfilepath

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 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