utils

package
v0.0.0-...-41600d1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExtension

func FileExtension(fileName string) string

FileExtension returns the file extension i.e: .js .css .svelte returns the extension in lowercase

func PascalCase

func PascalCase(str string) string

PascalCase turns "some randomText" into SomeRandomText PascalCase (aka UpperCamelCase) for simplicity, numbers are not considered delimiters

func PathPascalCase

func PathPascalCase(path string) string

func RecursivelyGetAllChildDirs

func RecursivelyGetAllChildDirs(path string) ([]string, error)

Types

type Logger

type Logger interface {
	Info(string)
	Error(string)
}

Jump to

Keyboard shortcuts

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