helpers

package
v0.0.0-...-573af51 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, substr string) bool

ContainsString check if a substring exists in strings slice

func JoinString

func JoinString(str string) string

JoinString takes a pointer to a string and modify this string in order to remove spaces and replace them by dashes

func LowerCase

func LowerCase(name string) string

LowerCase returns input string lowercased

func UpperCaseFirstChar

func UpperCaseFirstChar(word string) string

UpperCaseFirstChar returns the input string with first letter capitalized

Types

type FileParts

type FileParts struct {
	Name       string
	Path       string
	OutputName string
}

FileParts contains the needed informations to execute template for a file

func GetFilePartsFromName

func GetFilePartsFromName(name string, outputName string) FileParts

GetFilePartsFromName tries to get path and name from the file name, also try to find desired extension

Jump to

Keyboard shortcuts

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