utils

package
v0.0.0-...-092a443 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists

func IsLowerCase

func IsLowerCase(r rune) bool

IsLowerCase returns true if the rune in a-z

func IsUpperCase

func IsUpperCase(r rune) bool

IsUpperCase returns true if the rune in A-Z

func IsZeroValue

func IsZeroValue(v any) bool

IsZeroValue checks if a value is the zero value of its type.

func PathExists

func PathExists(path string) bool

PathExists checks if a path exists

func ToCamelCase

func ToCamelCase(s string) string

ToCamelCase returns a copy string by converting snake case into camel case

func ToLower

func ToLower(s string) string

ToLower returns a copy string by converting it into lower

func ToLowerCase

func ToLowerCase(r rune) rune

ToLowerCase converts rune into lower case

func ToLowerFirst

func ToLowerFirst(s string) string

ToLowerFirst converts the first letter of a string to lowercase.

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase returns a copy string by converting camel case into snake case

func ToTitle

func ToTitle(s string) string

ToTitle convert first letter to uppercase

func ToUpper

func ToUpper(s string) string

ToUpper returns a copy string by converting it into upper

func ToUpperCase

func ToUpperCase(r rune) rune

ToUpperCase converts rune into upper case

func UnExport

func UnExport(text string) bool

UnExport converts the first letter into lower case

func UpperFirst

func UpperFirst(s string) string

UpperFirst converts s[0] into upper case

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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