utils

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFileWithContent

func CreateTempFileWithContent(content string, nameTemplate string) (string, error)

CreateTempFileWithContent will create a temporary file with the content passed, and using the nameTemplate. returns the name of the created file, and error is not nil if some problem happened

func GetFormattedTime

func GetFormattedTime(t string) time.Time

GetFormattedTime returns a time.Time object from the string

func IsEmpty

func IsEmpty(data interface{}) bool

IsEmpty helper that returns true when a type is empty

func IsNotEmpty

func IsNotEmpty(data interface{}) bool

IsNotEmpty helper that returns true when a type is not empty

Types

This section is empty.

Jump to

Keyboard shortcuts

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