strings

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 0 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.0.7

func Contains(text, search string) int

Contains verifica si la cadena 'search' está presente en 'text'

func ExtractTwoPointArgument added in v0.0.8

func ExtractTwoPointArgument(option string, field *string) (err string)

func IsNotLetter added in v0.0.11

func IsNotLetter(r rune) bool

func Join added in v0.0.6

func Join(values []string, separate string) (out string)

separate ej: " ", "," "."

func LowerCaseFirstLetter added in v0.0.5

func LowerCaseFirstLetter(text string) string

func RemoveSuffixIfPresent added in v0.0.8

func RemoveSuffixIfPresent(path *string, suffix string)

remover \cmd ej: "mi_directorio\cmd" "\\cmd"

func Replace added in v0.0.11

func Replace(text, old, newStr string) (result string)

func Split added in v0.0.3

func Split(data, separator string) (result []string)

ej: "texto1,texto2" "," = []string{texto1,texto2}

func ToLowerCase added in v0.0.8

func ToLowerCase(text string) string

todo a minúscula alfabeto con ñ

func ToUpperCase added in v0.0.11

func ToUpperCase(text string) string

todo a mayúscula alfabeto con ñ

func Trim added in v0.0.11

func Trim(text string) string

Eliminar espacios al principio y al final

func TrimSuffix added in v0.0.11

func TrimSuffix(text, suffix string) string

func UpperCaseFirstLetter added in v0.0.11

func UpperCaseFirstLetter(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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