utils

package
v0.0.1-c Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileToString

func FileToString(filePath string) (string, error)

FileToString lee el contenido de un archivo en la ruta especificada y lo devuelve como una cadena.

func GenerateRandomString

func GenerateRandomString(length int) string

GenerateRandomString genera una cadena aleatoria de longitud dada.

func GetCurrentTimestamp

func GetCurrentTimestamp() int64

GetCurrentTimestamp devuelve la marca de tiempo actual en formato Unix.

func StringToFile

func StringToFile(content string, filePath string) error

StringToFile guarda una cadena en un archivo con la ruta especificada.

func ToSnakeCase

func ToSnakeCase(str 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