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 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址