fina

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePartsInfo

type FilePartsInfo struct {
	Path           string
	Name           string
	Ext            string
	NameWithoutExt string
}

func GetFilePartsInfo

func GetFilePartsInfo(file string) *FilePartsInfo

func (*FilePartsInfo) NewExt

func (fpi *FilePartsInfo) NewExt(ext string) string

Return new filename with new extension was: /some/path/file.ext will: /some/path/file.<newext>

func (*FilePartsInfo) Prefix

func (fpi *FilePartsInfo) Prefix(prefix string) string

Return new filename with Prefix was: /some/path/file.ext will: /some/path/<prefix>file.ext --------------------------------- prefix: "demo-" will: /some/path/demo-file.ext

func (*FilePartsInfo) PrefixWithNewExt

func (fpi *FilePartsInfo) PrefixWithNewExt(prefix, ext string) string

Return new filename with new extension and prefix was: /some/path/file.ext will: /some/path/<prefix>file.<newext>

Jump to

Keyboard shortcuts

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