utils

package
v0.0.0-...-65b1bfe Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatInitial

func FormatInitial(initial float64) string

FormatInitial formatea un valor inicial en moneda argentina. 'initial' es el valor inicial a formatear. Retorna el valor formateado en formato 'ARS X.YY'.

func GetSupportedLanguagesString

func GetSupportedLanguagesString(supportedLanguages []string) string

GetSupportedLanguagesString convierte un slice de idiomas soportados en un string formateado. Si no hay idiomas soportados, retorna un mensaje indicando que no hay soporte.

func LoadExistingData

func LoadExistingData(filePath string) (map[int]bool, error)

LoadExistingData carga los appIDs previamente existentes desde un archivo CSV. 'filePath' es la ubicación del archivo CSV. Retorna un mapa de appIDs existentes y un posible error si ocurre durante la lectura del archivo.

func MeasurePerformance

func MeasurePerformance(nameOperation string, fn func())

func ParseSupportedLanguages

func ParseSupportedLanguages(raw string) map[string][]string

ParseSupportedLanguages analiza una cadena raw de idiomas soportados y la convierte en un mapa.

func ReadAppIDsFromCSV

func ReadAppIDsFromCSV(filePath string) ([]int, error)

func UploadFileToGCS

func UploadFileToGCS(content string, bucketName, fileName string) error

UploadFileToGCS carga un archivo en Google Cloud Storage. bucketName es el nombre del depósito. fileName es el nombre del archivo. content es el contenido del archivo a cargar en formato de cadena.

Types

This section is empty.

Jump to

Keyboard shortcuts

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