strings

package module
v0.0.13 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

This section is empty.

Types

type Strings added in v0.0.12

type Strings struct{}

func (Strings) Contains added in v0.0.12

func (s Strings) Contains(text, search string) int

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

func (Strings) ExtractTwoPointArgument added in v0.0.12

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

func (Strings) FirstLetterIsCapital added in v0.0.13

func (s Strings) FirstLetterIsCapital(text string) bool

func (Strings) IsNotLetter added in v0.0.12

func (Strings) IsNotLetter(r rune) bool

func (Strings) Join added in v0.0.12

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

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

func (Strings) LowerCaseFirstLetter added in v0.0.12

func (s Strings) LowerCaseFirstLetter(text string) string

func (Strings) RemoveSuffixIfPresent added in v0.0.12

func (s Strings) RemoveSuffixIfPresent(path *string, suffix string)

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

func (Strings) Replace added in v0.0.12

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

func (Strings) Split added in v0.0.12

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

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

func (Strings) ToLowerCase added in v0.0.12

func (s Strings) ToLowerCase(text string) string

todo a minúscula alfabeto con ñ

func (Strings) ToUpperCase added in v0.0.12

func (s Strings) ToUpperCase(text string) string

todo a mayúscula alfabeto con ñ

func (Strings) Trim added in v0.0.12

func (s Strings) Trim(text string) string

Eliminar espacios al principio y al final

func (Strings) TrimSuffix added in v0.0.12

func (s Strings) TrimSuffix(text, suffix string) string

func (Strings) UpperCaseFirstLetter added in v0.0.12

func (s Strings) UpperCaseFirstLetter(text string) string

Jump to

Keyboard shortcuts

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